@types/numeral
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -27,3 +27,14 @@ // Type definitions for Numeral.js 2.0 | ||
const locales: NumeralJSLocales; | ||
/** | ||
* Object with all loaded formats | ||
*/ | ||
const formats: NumeralJSFormats; | ||
/** | ||
* Object with utility functions | ||
*/ | ||
const _: NumeralJSUtils; | ||
/** | ||
* This function sets the current locale. If no arguments are passed in, | ||
@@ -61,4 +72,4 @@ * it will simply return the current global locale key. | ||
key: string, | ||
value: NumeralJSLocale | NumeralJsFormat, | ||
): NumeralJSLocale | NumeralJsFormat; | ||
value: NumeralJSLocale | NumeralJSFormat, | ||
): NumeralJSLocale | NumeralJSFormat; | ||
@@ -118,3 +129,3 @@ function validate(value: any, culture: any): boolean; | ||
// http://numeraljs.com/#custom-formats | ||
interface NumeralJsFormat { | ||
interface NumeralJSFormat { | ||
regexps: { | ||
@@ -128,2 +139,11 @@ format: RegExp; | ||
interface NumeralJSFormats { | ||
[id: string]: NumeralJSFormat; | ||
} | ||
interface NumeralJSUtils { | ||
numberToFormat: (value: number, format: string, roundingFunction?: RoundingFunction) => string; | ||
stringToNumber: (string: string) => number; | ||
} | ||
type RegisterType = 'format' | 'locale'; | ||
@@ -130,0 +150,0 @@ } |
{ | ||
"name": "@types/numeral", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "TypeScript definitions for Numeral.js", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/numeral", | ||
"license": "MIT", | ||
@@ -37,4 +38,4 @@ "contributors": [ | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "372af92adbd8e2862e0817e488f52b4ab7bcefd51777ffa5635f7a96cad71e8e", | ||
"typeScriptVersion": "3.4" | ||
"typesPublisherContentHash": "fbc8d2cafd2e12c35cfc2876d731b58a8417cbb41cadc08de7fc0ab0c03542dd", | ||
"typeScriptVersion": "3.7" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Thu, 04 Mar 2021 00:08:24 GMT | ||
* Last updated: Mon, 20 Sep 2021 17:31:24 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: `numeral` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
7402
126
0