UNPKG

state-switch

Version:

State Switch is a Change Monitor/Guarder for Async Actions.

9 lines 525 B
import { Observable } from 'rxjs'; import type { Interpreter, StateSchema } from 'xstate'; declare const waitForSelector: <T>(stream$: Observable<T>, selector: (x: T) => boolean) => Promise<void>; declare const waitForMachineState: <TServiceCtlState extends StateSchema<any>>(interpreter: Interpreter<any, TServiceCtlState, any, { value: any; context: any; }>, state: keyof TServiceCtlState["states"]) => Promise<void>; export { waitForSelector, waitForMachineState, }; //# sourceMappingURL=wait-for-selector.d.ts.map