iso.d.ts 1.2 KB

12345678910111213141516171819202122
  1. import * as core from "../core/index.js";
  2. import * as schemas from "./schemas.js";
  3. export interface ZodMiniISODateTime extends schemas.ZodMiniStringFormat<"datetime"> {
  4. _zod: core.$ZodISODateTimeInternals;
  5. }
  6. export declare const ZodMiniISODateTime: core.$constructor<ZodMiniISODateTime>;
  7. export declare function datetime(params?: string | core.$ZodISODateTimeParams): ZodMiniISODateTime;
  8. export interface ZodMiniISODate extends schemas.ZodMiniStringFormat<"date"> {
  9. _zod: core.$ZodISODateInternals;
  10. }
  11. export declare const ZodMiniISODate: core.$constructor<ZodMiniISODate>;
  12. export declare function date(params?: string | core.$ZodISODateParams): ZodMiniISODate;
  13. export interface ZodMiniISOTime extends schemas.ZodMiniStringFormat<"time"> {
  14. _zod: core.$ZodISOTimeInternals;
  15. }
  16. export declare const ZodMiniISOTime: core.$constructor<ZodMiniISOTime>;
  17. export declare function time(params?: string | core.$ZodISOTimeParams): ZodMiniISOTime;
  18. export interface ZodMiniISODuration extends schemas.ZodMiniStringFormat<"duration"> {
  19. _zod: core.$ZodISODurationInternals;
  20. }
  21. export declare const ZodMiniISODuration: core.$constructor<ZodMiniISODuration>;
  22. export declare function duration(params?: string | core.$ZodISODurationParams): ZodMiniISODuration;