securityos/node_modules/next/dist/server/lib/schedule-on-next-tick.d.ts

8 lines
319 B
TypeScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
export type ScheduledFn<T = void> = () => T | PromiseLike<T>;
export type SchedulerFn<T = void> = (cb: ScheduledFn<T>) => void;
/**
* Schedules a function to be called on the next tick after the other promises
* have been resolved.
*/
export declare const scheduleOnNextTick: <T = void>(cb: ScheduledFn<T>) => void;