UNPKG

486 BJavaScriptView Raw
1"use strict";
2Object.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// }