@types/number-to-words
TypeScript icon, indicating that this package has built-in type declarations

1.2.3 • Public • Published

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

Credits

These definitions were written by Frederick Fogerty.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/number-to-words

Weekly Downloads

71,105

Version

1.2.3

License

MIT

Unpacked Size

3.7 kB

Total Files

5

Last publish

Collaborators

  • types