@withjoy/joykit
Version:
UI Component Library for Joy web
27 lines (26 loc) • 655 B
TypeScript
export declare const numberToWordMap: {
1: string;
2: string;
3: string;
4: string;
5: string;
6: string;
7: string;
8: string;
9: string;
10: string;
11: string;
12: string;
13: string;
14: string;
15: string;
16: string;
};
/**
* Return the number word for numbers 1-16.
* Returns strings or numbers as is if there is no corresponding word.
* Returns an empty string if value is not a string or number.
* @param {string|number} value The value to convert to a word.
* @returns {string}
*/
export declare const numberToWord: (value: string | number) => any;