UNPKG

typedash

Version:

modern, type-safe collection of utility functions

17 lines 443 B
//#region src/functions/identity/identity.d.ts /** * Returns the input value. * @template T The type of the input value. * @param value The input value. * @returns The input value. * @example * ```ts * identity('foo') // 'foo' * identity(42) // 42 * identity({ foo: 'bar' }) // { foo: 'bar' } * ``` */ declare function identity<T>(value: T): T; //#endregion export { identity as t }; //# sourceMappingURL=identity-R2g3sseV.d.cts.map