Files
SnowLuma/.pnpm-store/v11/files/ee/15864fafa47963847d7db5118bf946b164f6f673d02d971dd1fa4eeb1320d5f274c2fd14d4c7b94f0f232acbcbf5849bf27c4a505090b6af8d957c325ede89
T
TanTan 2a69b23b47
Dev Build / cleanup (push) Waiting to run
Dev Build / typecheck (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:27:07 +08:00

12 lines
291 B
Plaintext

/**
* Provided a value and a ValueType, returns the value as that value type.
*/
const getValueAsType = (value, type) => {
return type && typeof value === "number"
? type.transform(value)
: value;
};
export { getValueAsType };
//# sourceMappingURL=get-as-type.mjs.map