UNPKG

next

Version:

The React Framework

7 lines (6 loc) 300 B
export type AfterTask<T = unknown> = Promise<T> | AfterCallback<T>; export type AfterCallback<T = unknown> = () => T | Promise<T>; /** * This function allows you to schedule callbacks to be executed after the current request finishes. */ export declare function after<T>(task: AfterTask<T>): void;