UNPKG

guarder

Version:

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

13 lines 387 B
import { Guard } from '../types/Guard'; import { Instantiable } from '../types/Instantiable'; /** * Null Guard ensures that the property is not null */ declare class NullGuard implements Guard { /** * @inheritDoc */ guard<T = unknown>(property: T, errorMessage?: string, error?: Instantiable<Error>): T; } export { NullGuard }; //# sourceMappingURL=NullGuard.d.ts.map