UNPKG

n4s

Version:

Assertion library for form validations

18 lines 749 B
/// <reference types="validator" /> 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'; import { CB, DropFirst } from "vest-utils"; type EnforceCustomMatcher<F extends CB, R> = (...args: DropFirst<Parameters<F>>) => R; declare global { namespace n4s { interface EnforceCustomMatchers<R> { isAfter: EnforceCustomMatcher<typeof isAfter, R>; isBefore: EnforceCustomMatcher<typeof isBefore, R>; isDate: EnforceCustomMatcher<typeof isDate, R>; isISO8601: EnforceCustomMatcher<typeof isISO8601, R>; } } } //# sourceMappingURL=date.d.ts.map