/
opt
/
canhelp
/
node_modules
/
json-schema-to-ts
/
lib
/
cjs
/
utils
/
/opt/canhelp/node_modules/json-schema-to-ts/lib/cjs/utils
mkdir
upload
Name
Size
Mode
Actions
type-guards/
-
0755
rm
asConst.js
584
0644
edit
dl
rm
asConst.js.map
786
0644
edit
dl
rm
index.js
643
0644
edit
dl
rm
index.js.map
372
0644
edit
dl
rm
Edit:
/opt/canhelp/node_modules/json-schema-to-ts/lib/cjs/utils/asConst.js
(584B)
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.asConst = void 0; /** * Returns the input parameter without muting it, but narrowing its inferred type. Similar to using the `as const` statement functionnally. * @param input Input * @returns Input, narrowly typed * * ```ts * const object = { foo: "bar" } * // { foo: string } * * const narrowedObject = asConst({ foo: "bar "}) * // => { foo: "bar" } * ``` */ var asConst = function asConst(input) { return input; }; exports.asConst = asConst; //# sourceMappingURL=asConst.js.map
Save
cmd:
run