clumsy-graphics
Version:
a tool for rapidly developing animations where frames are described using svg elements à la react 🙃
10 lines (9 loc) • 418 B
TypeScript
export interface ActionBase<ActionType extends string, ActionPayload extends object> {
type: ActionType;
actionPayload: ActionPayload;
}
export interface EventBase<EventType extends string, EventPayload extends object> {
eventType: EventType;
eventPayload: EventPayload;
}
export declare type ChannelEventEmitter<SomeChannelEvent extends EventBase<string, object>> = (input: SomeChannelEvent) => void;