@cowwoc/requirements
Version:
A fluent API for enforcing design contracts with automatic message generation.
16 lines (15 loc) • 405 B
text/typescript
/**
* Thrown when assertion has failed or a condition thought to be impossible has occurred.
*/
declare class AssertionError extends Error {
/**
* Creates a new error.
*
* @param message - an explanation of what went wrong
* @param options - configuration options
*/
constructor(message?: string, options?: {
cause: unknown;
});
}
export { AssertionError };