npm.io
1.2.3 • Published 2 years ago

@types/number-to-words

Licence
MIT
Version
1.2.3
Deps
0
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

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

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 0939 GMT
  • Dependencies: none

Credits

These definitions were written by Frederick Fogerty.