UNPKG

n4s

Version:

typed schema validation version of enforce

14 lines (10 loc) 224 B
import isEmail from 'validator/es/lib/isEmail'; import { enforce } from '../n4s'; enforce.extend({ isEmail }); declare global { namespace n4s { interface EnforceMatchers { isEmail: typeof isEmail; } } }