source: node_modules/es-toolkit/dist/compat/util/constant.d.mts

Last change on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
File size: 309 bytes
Line 
1/**
2 * Creates a new function that always returns `value`.
3 *
4 * @template T - The type of the value to return.
5 * @param {T} value - The value to return from the new function.
6 * @returns {() => T} Returns the new constant function.
7 */
8declare function constant<T>(value: T): () => T;
9
10export { constant };
Note: See TracBrowser for help on using the repository browser.