UNPKG

@platform/state

Version:

A small, simple, strongly typed, [rx/observable] state-machine.

8 lines (7 loc) 330 B
import { Observable } from 'rxjs'; import { t } from '../common'; declare type O = Record<string, unknown>; export declare function create(factory: t.StateObject['create']): <T extends { [key: string]: O; }>(initial: T | Record<keyof T, t.IStateObject<T[keyof T]>>, dispose$?: Observable<any>) => t.StateMerger<T>; export {};