UNPKG

n4s

Version:

typed schema validation version of enforce

19 lines (18 loc) 735 B
import { n as WidenFirstParam } from "../n4sTypes-3THfSmAQ.mjs"; import isAfter from "validator/es/lib/isAfter"; import isBefore from "validator/es/lib/isBefore"; import isDate from "validator/es/lib/isDate"; import isISO8601 from "validator/es/lib/isISO8601"; //#region src/exports/date.d.ts declare global { namespace n4s { interface EnforceMatchers { isAfter: WidenFirstParam<typeof isAfter, string | Date | number>; isBefore: WidenFirstParam<typeof isBefore, string | Date | number>; isDate: WidenFirstParam<typeof isDate, string | Date | number>; isISO8601: WidenFirstParam<typeof isISO8601, string | Date | number>; } } } //# sourceMappingURL=date.d.ts.map //# sourceMappingURL=date.d.mts.map