mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-02 19:43:20 +08:00
Merge pull request #21330 from jasongi-at-sportsbet/master
updated types for cleave.js to 1.0.3
This commit is contained in:
2
types/cleave.js/index.d.ts
vendored
2
types/cleave.js/index.d.ts
vendored
@@ -1,6 +1,6 @@
|
||||
// Type definitions for cleave.js 1.0
|
||||
// Project: https://github.com/nosir/cleave.js
|
||||
// Definitions by: C Lentfort <https://github.com/clentfort>
|
||||
// Definitions by: C Lentfort <https://github.com/clentfort>, J Giancono <https://github.com/jasongi-at-sportsbet>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
|
||||
5
types/cleave.js/options.d.ts
vendored
5
types/cleave.js/options.d.ts
vendored
@@ -10,6 +10,8 @@ export type CreditCardType =
|
||||
| "mastercard"
|
||||
| "uatp"
|
||||
| "unknown"
|
||||
| "unionPay"
|
||||
| "mir"
|
||||
| "visa";
|
||||
export type CreditCardTypeChangeHandler = (owner: HTMLInputElement, type: CreditCardType) => void;
|
||||
|
||||
@@ -33,7 +35,7 @@ export interface CleaveOptions {
|
||||
}
|
||||
|
||||
// Numeral Options
|
||||
export type NumeralThousandsGroupStyleType = "lakh" | "thousand" | "wan";
|
||||
export type NumeralThousandsGroupStyleType = "lakh" | "thousand" | "wan" | "none";
|
||||
|
||||
export interface CleaveOptions {
|
||||
numeral?: boolean;
|
||||
@@ -55,6 +57,7 @@ export interface CleaveOptions {
|
||||
lowercase?: boolean;
|
||||
numericOnly?: boolean;
|
||||
prefix?: string;
|
||||
noImmediatePrefix?: boolean;
|
||||
rawValueTrimPrefix?: boolean;
|
||||
uppercase?: boolean;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user