UNPKG

tamda

Version:

Practical functional programming library for TypeScript

22 lines (21 loc) 657 B
/** * Counts the number of characters in the string `text`, i.e. `length`. * @param text String to count. */ export declare function count(text: string): number; /** * Counts the number of members in the `array`, i.e. `length`. * @param array Array to count. */ export declare function count<T>(array: T[]): number; /** * Returns a function that * counts the number of members in the list, i.e. `length`. */ export declare function count(): typeof deferred; /** * Counts the number of members in the `list`, i.e. `length`. * @param list List to count. */ declare function deferred<T>(list: string | T[]): number; export {};