coerce.d.cts 1.1 KB

1234567891011121314151617
  1. import * as core from "../core/index.cjs";
  2. import * as schemas from "./schemas.cjs";
  3. export interface ZodCoercedString<T = unknown> extends schemas._ZodString<core.$ZodStringInternals<T>> {
  4. }
  5. export declare function string<T = unknown>(params?: string | core.$ZodStringParams): ZodCoercedString<T>;
  6. export interface ZodCoercedNumber<T = unknown> extends schemas._ZodNumber<core.$ZodNumberInternals<T>> {
  7. }
  8. export declare function number<T = unknown>(params?: string | core.$ZodNumberParams): ZodCoercedNumber<T>;
  9. export interface ZodCoercedBoolean<T = unknown> extends schemas._ZodBoolean<core.$ZodBooleanInternals<T>> {
  10. }
  11. export declare function boolean<T = unknown>(params?: string | core.$ZodBooleanParams): ZodCoercedBoolean<T>;
  12. export interface ZodCoercedBigInt<T = unknown> extends schemas._ZodBigInt<core.$ZodBigIntInternals<T>> {
  13. }
  14. export declare function bigint<T = unknown>(params?: string | core.$ZodBigIntParams): ZodCoercedBigInt<T>;
  15. export interface ZodCoercedDate<T = unknown> extends schemas._ZodDate<core.$ZodDateInternals<T>> {
  16. }
  17. export declare function date<T = unknown>(params?: string | core.$ZodDateParams): ZodCoercedDate<T>;