UNPKG

zod-joda

Version:

JS-Joda integration for Zod validation library

16 lines (15 loc) 3.13 kB
import { type ZodMiniType } from "zod/v4/mini"; import { type CoreParams } from "./core.js"; export declare const duration: (params?: CoreParams | undefined) => ZodMiniType<import("@js-joda/core").Duration, string | import("@js-joda/core").Duration, import("zod/v4/core").$ZodTypeInternals<import("@js-joda/core").Duration, string | import("@js-joda/core").Duration>>; export declare const localDate: (params?: import("./core.js").TemporalParams | undefined) => ZodMiniType<import("@js-joda/core").LocalDate, string | import("@js-joda/core").LocalDate, import("zod/v4/core").$ZodTypeInternals<import("@js-joda/core").LocalDate, string | import("@js-joda/core").LocalDate>>; export declare const localDateTime: (params?: import("./core.js").TemporalParams | undefined) => ZodMiniType<import("@js-joda/core").LocalDateTime, string | import("@js-joda/core").LocalDateTime, import("zod/v4/core").$ZodTypeInternals<import("@js-joda/core").LocalDateTime, string | import("@js-joda/core").LocalDateTime>>; export declare const localTime: (params?: import("./core.js").TemporalParams | undefined) => ZodMiniType<import("@js-joda/core").LocalTime, string | import("@js-joda/core").LocalTime, import("zod/v4/core").$ZodTypeInternals<import("@js-joda/core").LocalTime, string | import("@js-joda/core").LocalTime>>; export declare const zonedDateTime: (params?: import("./core.js").TemporalParams | undefined) => ZodMiniType<import("@js-joda/core").ZonedDateTime, string | import("@js-joda/core").ZonedDateTime, import("zod/v4/core").$ZodTypeInternals<import("@js-joda/core").ZonedDateTime, string | import("@js-joda/core").ZonedDateTime>>; export declare const zj: { duration: (params?: CoreParams | undefined) => ZodMiniType<import("@js-joda/core").Duration, string | import("@js-joda/core").Duration, import("zod/v4/core").$ZodTypeInternals<import("@js-joda/core").Duration, string | import("@js-joda/core").Duration>>; localDate: (params?: import("./core.js").TemporalParams | undefined) => ZodMiniType<import("@js-joda/core").LocalDate, string | import("@js-joda/core").LocalDate, import("zod/v4/core").$ZodTypeInternals<import("@js-joda/core").LocalDate, string | import("@js-joda/core").LocalDate>>; localDateTime: (params?: import("./core.js").TemporalParams | undefined) => ZodMiniType<import("@js-joda/core").LocalDateTime, string | import("@js-joda/core").LocalDateTime, import("zod/v4/core").$ZodTypeInternals<import("@js-joda/core").LocalDateTime, string | import("@js-joda/core").LocalDateTime>>; localTime: (params?: import("./core.js").TemporalParams | undefined) => ZodMiniType<import("@js-joda/core").LocalTime, string | import("@js-joda/core").LocalTime, import("zod/v4/core").$ZodTypeInternals<import("@js-joda/core").LocalTime, string | import("@js-joda/core").LocalTime>>; zonedDateTime: (params?: import("./core.js").TemporalParams | undefined) => ZodMiniType<import("@js-joda/core").ZonedDateTime, string | import("@js-joda/core").ZonedDateTime, import("zod/v4/core").$ZodTypeInternals<import("@js-joda/core").ZonedDateTime, string | import("@js-joda/core").ZonedDateTime>>; }; export default zj;