Created
October 5, 2018 13:09
-
-
Save rohmanhm/5d42de5fbdb5a37374b7fc9d656be252 to your computer and use it in GitHub Desktop.
Typescript definition for format-currency
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| declare module 'format-currency' { | |
| interface Options { | |
| format?: string; // %s => symbol, %v => value, %c => code | |
| code?: string; | |
| symbol?: string; | |
| locale?: string; | |
| minimumFractionDigits?: number; | |
| maximumFractionDigits?: number; | |
| nanZero?: boolean; | |
| } | |
| type FormatCurrencyFn = (value: any, options?: Options) => string | |
| type FormatCurrencyExport = FormatCurrencyFn | |
| const FormatCurrency: FormatCurrencyExport | |
| export = FormatCurrency | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment