UNPKG

declarations

Version:

[![npm version](https://badge.fury.io/js/declarations.svg)](https://www.npmjs.com/package/declarations)

50 lines (43 loc) 1.11 kB
// Type definitions for Numeral.js // Project: https://github.com/adamwdraper/Numeral-js // Definitions by: Vincent Bortone <https://github.com/vbortone/> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface NumeralJSLanguage { delimiters: { thousands: string; decimal: string; }; abbreviations: { thousand: string; million: string; billion: string; trillion: string; }; ordinal(num: number): string; currency: { symbol: string; }; } interface Numeral { (value?: any): Numeral; version: string; isNumeral: boolean; language(key: string, values?: NumeralJSLanguage): Numeral; zeroFormat(format: string): string; clone(): Numeral; format(inputString?: string): string; formatCurrency(inputString?: string): string; unformat(inputString: string): number; value(): number; valueOf(): number; set (value: any): Numeral; add(value: any): Numeral; subtract(value: any): Numeral; multiply(value: any): Numeral; divide(value: any): Numeral; difference(value: any): number; } declare var numeral: Numeral; declare module "numeral" { export = numeral; }