react-event-test
Version:
Event-driven alternative to React Context
11 lines (10 loc) • 314 B
TypeScript
declare const messages: Map<any, any>;
declare const subscribe: (...args: any[]) => {
id: any;
type: string;
callback: any;
unsubscribe: () => void;
};
declare const publish: (...args: any[]) => void;
declare function last(type: any, init: any): any;
export { subscribe, publish, messages, last };