WIP - add extractor, generate snippet_data
This commit is contained in:
13
node_modules/xstate/es/patterns.d.ts
generated
vendored
Normal file
13
node_modules/xstate/es/patterns.d.ts
generated
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
import { AtomicStateNodeConfig, StatesConfig, Event, EventObject, StateSchema } from './types';
|
||||
export declare function toggle<TEventType extends string = string>(onState: string, offState: string, eventType: TEventType): Record<string, AtomicStateNodeConfig<any, {
|
||||
type: TEventType;
|
||||
}>>;
|
||||
interface SequencePatternOptions<TEvent extends EventObject> {
|
||||
nextEvent: Event<TEvent> | undefined;
|
||||
prevEvent: Event<TEvent> | undefined;
|
||||
}
|
||||
export declare function sequence<TStateSchema extends StateSchema, TEvent extends EventObject>(items: string[], options?: Partial<SequencePatternOptions<TEvent>>): {
|
||||
initial: keyof TStateSchema['states'];
|
||||
states: StatesConfig<any, TStateSchema, TEvent>;
|
||||
};
|
||||
export {};
|
||||
Reference in New Issue
Block a user