guarder
Version:
Guarder provides simple validation logic to reduce clutter with inline guard statements
13 lines • 389 B
TypeScript
import { Guard } from '../types/Guard';
import { Instantiable } from '../types/Instantiable';
/**
* Zero Guard validates that the property is not zero
*/
declare class ZeroGuard implements Guard {
/**
* @inheritDoc
*/
guard<T = unknown>(property: T, errorMessage?: string, error?: Instantiable<Error>): T;
}
export { ZeroGuard };
//# sourceMappingURL=ZeroGuard.d.ts.map