UNPKG

@types/number-to-words

Version:
36 lines (27 loc) 1.18 kB
# Installation > `npm install --save @types/number-to-words` # Summary This package contains type definitions for number-to-words (https://github.com/marlun78/number-to-words). # Details Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/number-to-words. ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/number-to-words/index.d.ts) ````ts export as namespace numberToWords; /** * Converts an integer into a string with an ordinal postfix. If number is decimal, the decimals will be removed. */ export function toOrdinal(number: string | number): string; /** * Converts an integer into words. If number is decimal, the decimals will be removed. */ export function toWords(number: string | number): string; /** * Converts a number into ordinal words. If number is decimal, the decimals will be removed. */ export function toWordsOrdinal(number: string | number): string; ```` ### Additional Details * Last updated: Tue, 07 Nov 2023 09:09:39 GMT * Dependencies: none # Credits These definitions were written by [Frederick Fogerty](https://github.com/frederickfogerty).