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