UNPKG

typia

Version:

Superfast runtime validators with only one line

11 lines (10 loc) 354 B
import { TypeGuardError } from "../TypeGuardError.mjs"; //#region src/internal/_assertGuard.ts const _assertGuard = (exceptionable, props, factory) => { if (exceptionable === true) if (factory) throw factory(props); else throw new TypeGuardError(props); return false; }; //#endregion export { _assertGuard }; //# sourceMappingURL=_assertGuard.mjs.map