Project Init

This commit is contained in:
Muluhabt
2026-05-29 15:23:46 +03:00
commit 2fbc557aac
67387 changed files with 6063341 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
//#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 {(...args: any[]) => any} func The function to defer.
* @param {...any[]} args The arguments to invoke `func` with.
* @returns {number} 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 };