Files
SnowLuma/.pnpm-store/v11/files/44/5f335b2f089af80ede7e6ad2872abcd495a17f69d845f0bf06b0ac1f458b62a23255798a4bc88e5763ec4861174704a8d306725fef89fd3381497c9166bc8a
TanTan 2a69b23b47
Dev Build / cleanup (push) Canceled after 0s
Dev Build / typecheck (push) Canceled after 0s
Dev Build / build (linux-arm64, ubuntu-24.04-arm, linux-arm64) (push) Canceled after 0s
Dev Build / build (linux-x64, ubuntu-latest, linux-x64) (push) Canceled after 0s
Dev Build / build (win-x64, windows-latest, win32-x64) (push) Canceled after 0s
Dev Build / dispatch-dev-docker (push) Canceled after 0s
docs: 仓库链接指向本镜像仓库
2026-11-13 09:27:07 +08:00

28 lines
1.2 KiB
Plaintext

import * as core from "../core/index.js";
import * as schemas from "./schemas.js";
// @__NO_SIDE_EFFECTS__
export function string<T = unknown>(params?: string | core.$ZodStringParams): schemas.ZodMiniString<T> {
return core._coercedString(schemas.ZodMiniString, params) as schemas.ZodMiniString<T>;
}
// @__NO_SIDE_EFFECTS__
export function number<T = unknown>(params?: string | core.$ZodNumberParams): schemas.ZodMiniNumber<T> {
return core._coercedNumber(schemas.ZodMiniNumber, params) as schemas.ZodMiniNumber<T>;
}
// @__NO_SIDE_EFFECTS__
export function boolean<T = unknown>(params?: string | core.$ZodBooleanParams): schemas.ZodMiniBoolean<T> {
return core._coercedBoolean(schemas.ZodMiniBoolean, params) as schemas.ZodMiniBoolean<T>;
}
// @__NO_SIDE_EFFECTS__
export function bigint<T = unknown>(params?: string | core.$ZodBigIntParams): schemas.ZodMiniBigInt<T> {
return core._coercedBigint(schemas.ZodMiniBigInt, params) as schemas.ZodMiniBigInt<T>;
}
// @__NO_SIDE_EFFECTS__
export function date<T = unknown>(params?: string | core.$ZodDateParams): schemas.ZodMiniDate<T> {
return core._coercedDate(schemas.ZodMiniDate, params) as schemas.ZodMiniDate<T>;
}