Files
DefinitelyTyped/types/comma-number/index.d.ts
Corey Rice 976163796c 🤖 Merge PR #58653 feat: add types for comma-number@2.1 by @coreyar
* feat: add types for comma-number@2.1

* Update types/comma-number/tsconfig.json

Co-authored-by: Piotr Błażejewicz (Peter Blazejewicz) <peterblazejewicz@users.noreply.github.com>

* Update types/comma-number/comma-number-tests.ts

Co-authored-by: Piotr Błażejewicz (Peter Blazejewicz) <peterblazejewicz@users.noreply.github.com>

Co-authored-by: Piotr Błażejewicz (Peter Blazejewicz) <peterblazejewicz@users.noreply.github.com>
2022-02-21 11:05:05 -08:00

17 lines
517 B
TypeScript

// Type definitions for comma-number 2.1
// Project: https://github.com/elidoran/comma-number
// Definitions by: Corey Rice <https://github.com/coreyar>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare function commaNumber(
inputNumber: number | string,
optionalSeparator?: string,
optionalDecimalChar?: string,
): string;
declare namespace commaNumber {
function bindWith(separator: string, decimalChar: string): (num: number | string) => string;
}
export = commaNumber;