{"version":3,"file":"toFunction.cjs","names":[],"sources":["../../src/utils/toFunction.ts"],"sourcesContent":["export type ToFunction_F = <T = any>(value: T) => () => T;\n\n/**\n * Converts a value into a function that returns that value.\n * @param value of type {@linkcode T}, to convert into a function.\n * @returns A function that, when called, returns the original value.\n *\n * @see {@linkcode ToFunction_F} for the type definition\n */\nexport const toFunction: ToFunction_F = value => () => value;\n"],"mappings":";;;;;;;;;AASA,MAAa,cAA2B,gBAAe"}