Files
30-seconds-of-code/node_modules/xstate/lib/invoke.js
2019-08-20 15:52:05 +02:00

21 lines
520 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// export function fromPromise<T>(
// promise: Promise<T>,
// options?: InvokedPromiseOptions
// ): any {
// const optionsWithDefaults = {
// id: 'promise',
// ...options
// };
// return Machine<T, PromiseMachineSchema>({
// id: optionsWithDefaults.id,
// initial: 'pending',
// states: {
// pending: {},
// resolved: {},
// rejected: {}
// }
// });
// }
//# sourceMappingURL=invoke.js.map