@utilify/core
Version:
Modern, strongly typed, and safe utility function library for JavaScript and TypeScript. Includes type checking, manipulation of arrays, objects, strings, dates, colors, numbers, regular expressions, and more. Compatible with Browser, Node.js, Deno, and B
12 lines • 355 B
TypeScript
/**
* @callback DeferCallback
* @returns {void}
*/
/**
* Defers execution of a callback until the next event loop tick.
* @param {DeferCallback} callback - The function to defer.
* @returns {void}
* @throws {TypeError} If callback is not a function.
*/
export default function defer(callback: () => void): void;
//# sourceMappingURL=defer.d.ts.map