@cowwoc/requirements
Version:
A fluent API for enforcing design contracts with automatic message generation.
13 lines (12 loc) • 477 B
text/typescript
import { AbstractValidator, MessageBuilder } from "../internal.mjs";
/**
* @param validator - the validator
* @returns a message for the validation failure
*/
declare function objectIsEmpty(validator: AbstractValidator<unknown>): MessageBuilder;
/**
* @param validator - the validator
* @returns a message for the validation failure
*/
declare function objectIsNotEmpty(validator: AbstractValidator<unknown>): MessageBuilder;
export { objectIsEmpty, objectIsNotEmpty };