reports/frontend/node_modules/es-toolkit/dist/compat/function/defer.d.mts
jtricerolph 1c411e402e Add settings page for managing forecasting API key and URL via UI
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-20 14:37:36 +00:00

15 lines
No EOL
539 B
TypeScript

//#region src/compat/function/defer.d.ts
/**
* Defers invoking the `func` until the current call stack has cleared. Any additional arguments are provided to func when it's invoked.
*
* @param func The function to defer.
* @param args The arguments to invoke `func` with.
* @returns Returns the timer id.
*
* @example
* defer(console.log, 'deferred');
* // => Logs 'deferred' after the current call stack has cleared.
*/
declare function defer(func: (...args: any[]) => any, ...args: any[]): number;
//#endregion
export { defer };