@types/number-to-words
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -1,6 +0,1 @@ | ||
// Type definitions for number-to-words 1.2 | ||
// Project: https://github.com/marlun78/number-to-words | ||
// Definitions by: Frederick Fogerty <https://github.com/frederickfogerty> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
export as namespace numberToWords; | ||
@@ -7,0 +2,0 @@ |
{ | ||
"name": "@types/number-to-words", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "TypeScript definitions for number-to-words", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/number-to-words", | ||
"license": "MIT", | ||
@@ -9,4 +10,4 @@ "contributors": [ | ||
"name": "Frederick Fogerty", | ||
"url": "https://github.com/frederickfogerty", | ||
"githubUsername": "frederickfogerty" | ||
"githubUsername": "frederickfogerty", | ||
"url": "https://github.com/frederickfogerty" | ||
} | ||
@@ -23,4 +24,4 @@ ], | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "2c21d82a9242eb2ca859e07d74f03617f587d1c833046f63a6572afafa293687", | ||
"typeScriptVersion": "3.5" | ||
"typesPublisherContentHash": "69f7c8b93c7f0c978471213995d6ebd356f645895b1a32ebc3bb8659dfa5297f", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -9,9 +9,28 @@ # Installation | ||
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: Sat, 08 May 2021 22:01:22 GMT | ||
* Last updated: Wed, 18 Oct 2023 05:47:08 GMT | ||
* Dependencies: none | ||
* Global values: `numberToWords` | ||
# Credits | ||
These definitions were written by [Frederick Fogerty](https://github.com/frederickfogerty). |
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
3699
0
36
13