archieve-projects/微信机器人/node_modules/xstate/lib/invoke.js

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: {}
// }
// });
// }