UNPKG

xstate

Version:

Finite State Machines and Statecharts for the Modern Web.

21 lines (20 loc) 486 B
"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: {} // } // }); // }