DefinitelyTyped/types/parsecurrency/index.d.ts
Cristian Greco a1649b0020 Add types for 'parsecurrency' (#27565)
* Add types for parsecurrency

* Change export default to export =
2018-07-25 09:08:51 -07:00

20 lines
537 B
TypeScript

// Type definitions for parsecurrency 0.2
// Project: https://github.com/mktj/parsecurrency#readme
// Definitions by: Cristian Greco <https://github.com/cristianrgreco>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
interface ParsedCurrency {
raw: string;
value: number;
integer: string;
decimals: string;
currency: string;
symbol: string;
decimalSeparator: string;
groupSeparator: string;
}
declare function parsecurrency(currency: string): ParsedCurrency;
export = parsecurrency;