UNPKG

react-history-switch

Version:

Self-hosted context-free Switch routing component for History.js library (React). The library was created to transfer navigation responsibility from a view into Mobx state container (MVC). Also can be used separately as a self-hosted router

7 lines (6 loc) 288 B
export interface IWrappedFn<T extends any = any, P extends any[] = any> { (...args: P): Promise<T>; clear(): void; } export declare const queued: <T extends any = any, P extends any[] = any[]>(promise: (...args: P) => Promise<T>) => IWrappedFn<T, P>; export default queued;