UNPKG

guarder

Version:

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

13 lines 397 B
import { Guard } from '../types/Guard'; import { Instantiable } from '../types/Instantiable'; /** * Number Guard validates that the property is a number */ declare class NumberGuard implements Guard { /** * @inheritDoc */ guard<T = unknown>(property: T, errorMessage?: string, error?: Instantiable<Error>): T; } export { NumberGuard }; //# sourceMappingURL=NumberGuard.d.ts.map