Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/numeral

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/numeral - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

26

numeral/index.d.ts

@@ -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 @@ }

7

numeral/package.json
{
"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`

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc