Files
HRM-System/node_modules/es-toolkit/dist/compat/util/constant.d.mts
2026-04-13 08:19:53 +08:00

11 lines
309 B
TypeScript

/**
* Creates a new function that always returns `value`.
*
* @template T - The type of the value to return.
* @param {T} value - The value to return from the new function.
* @returns {() => T} Returns the new constant function.
*/
declare function constant<T>(value: T): () => T;
export { constant };