21 lines
486 B
JavaScript
Executable File
21 lines
486 B
JavaScript
Executable File
"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: {}
|
|
// }
|
|
// });
|
|
// }
|