invoke.js 486 B

1234567891011121314151617181920
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. // export function fromPromise<T>(
  4. // promise: Promise<T>,
  5. // options?: InvokedPromiseOptions
  6. // ): any {
  7. // const optionsWithDefaults = {
  8. // id: 'promise',
  9. // ...options
  10. // };
  11. // return Machine<T, PromiseMachineSchema>({
  12. // id: optionsWithDefaults.id,
  13. // initial: 'pending',
  14. // states: {
  15. // pending: {},
  16. // resolved: {},
  17. // rejected: {}
  18. // }
  19. // });
  20. // }