Initial commit
This commit is contained in:
37
node_modules/currency.js/dist/currency.js.flow
generated
vendored
Normal file
37
node_modules/currency.js/dist/currency.js.flow
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
// @flow
|
||||
declare type $currency$any = number | string | currency;
|
||||
|
||||
declare type formatFunction = (currency: currency, options: $currency$opts) => string;
|
||||
|
||||
declare type $currency$opts = {
|
||||
symbol?: string,
|
||||
separator?: string,
|
||||
decimal?: string,
|
||||
errorOnInvalid?: boolean,
|
||||
precision?: number,
|
||||
increment?: number,
|
||||
useVedic?: boolean,
|
||||
pattern?: string,
|
||||
negativePattern?: string,
|
||||
format?: formatFunction,
|
||||
fromCents?: boolean
|
||||
}
|
||||
|
||||
declare class currency {
|
||||
static (value: $currency$any, opts?: $currency$opts): currency,
|
||||
constructor(value: $currency$any, opts?: $currency$opts): currency,
|
||||
add(number: $currency$any): currency;
|
||||
subtract(number: $currency$any): currency;
|
||||
multiply(number: $currency$any): currency;
|
||||
divide(number: $currency$any): currency;
|
||||
distribute(count: number): Array<currency>;
|
||||
dollars(): number;
|
||||
cents(): number;
|
||||
format(options?: $currency$opts | formatFunction): string;
|
||||
toString(): string;
|
||||
toJSON(): number;
|
||||
+intValue: number;
|
||||
+value: number;
|
||||
}
|
||||
|
||||
declare module.exports: typeof currency;
|
||||
Reference in New Issue
Block a user