mirror of
https://github.com/chenasraf/DefinitelyTyped.git
synced 2026-05-18 01:49:01 +00:00
* 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>
17 lines
517 B
TypeScript
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;
|