succulent
Version:
Powerful and easy runtime type checking
9 lines (8 loc) • 352 B
TypeScript
declare type HasLength = {
length: number;
};
export declare function hasLength(length: number): (x: HasLength) => boolean;
export declare function minLength(length: number): (x: HasLength) => boolean;
export declare function maxLength(length: number): (x: HasLength) => boolean;
export declare function nonEmpty(x: HasLength): boolean;
export {};