Installation
npm install --save @types/parse-decimal-number
Summary
This package contains type definitions for parse-decimal-number (https://github.com/AndreasPizsa/parse-decimal-number).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/parse-decimal-number.
declare namespace parseDecimalNumber {
type ArrayOptions = [thousands: string, decimal: string];
interface HashOptions {
decimal: string;
thousands: string;
}
type Options = ArrayOptions | HashOptions | string;
function factoryReset(): void;
function setOptions(hash: HashOptions): void;
function withOptions(options: Options, enforceGroupSize?: boolean): (string: string) => number;
}
declare function parseDecimalNumber(
string: string,
options?: parseDecimalNumber.Options,
enforceGroupSize?: boolean,
): number;
export = parseDecimalNumber;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: none
Credits
These definitions were written by Ciarán Ingle.