UNPKG

@cowwoc/requirements

Version:

A fluent API for enforcing design contracts with automatic message generation.

21 lines (20 loc) 665 B
/** * An object and its size: If the object represents a collection, the size refers to the number of elements it * contains. If the object represents a string, the size corresponds to its length. * * @param value - the object * @param size - the value's size */ declare class ObjectAndSize { object: Map<unknown, unknown> | Set<unknown> | unknown[] | string; size: number; /** * Creates a new instance. * * @param object - the object * @param size - the object's size */ constructor(object: Map<unknown, unknown> | Set<unknown> | unknown[] | string, size: number); toString(): string; } export { ObjectAndSize };