Files
30-seconds-of-code/node_modules/xstate/lib/Actor.d.ts
2019-08-20 15:52:05 +02:00

11 lines
359 B
TypeScript

import { EventObject, Subscribable } from './types';
export interface Actor<TContext = any, TEvent extends EventObject = EventObject> extends Subscribable<TContext> {
id: string;
send: (event: TEvent) => any;
stop?: () => any | undefined;
toJSON: () => {
id: string;
};
}
export declare function isActor(item: any): item is Actor;