UNPKG

guarder

Version:

Guarder provides simple validation logic to reduce clutter with inline guard statements

15 lines 891 B
import { Guarder } from './Guarder'; import { Guard } from './types/Guard'; import { NullGuard } from './guards/NullGuard'; import { ZeroGuard } from './guards/ZeroGuard'; import { EmptyGuard } from './guards/EmptyGuard'; import { FalsyGuard } from './guards/FalsyGuard'; import { NumberGuard } from './guards/NumberGuard'; import { Instantiable } from './types/Instantiable'; import { ArgumentError } from './errors/ArgumentError'; import { NegativeGuard } from './guards/NegativeGuard'; import { UndefinedGuard } from './guards/UndefinedGuard'; import { WhitespaceGuard } from './guards/WhitespaceGuard'; import { GuardNotFoundError } from './errors/GuardNotFoundError'; export { Guard, Guarder, NullGuard, ZeroGuard, EmptyGuard, FalsyGuard, NumberGuard, Instantiable, ArgumentError, NegativeGuard, UndefinedGuard, WhitespaceGuard, GuardNotFoundError }; //# sourceMappingURL=index.d.ts.map