Merge pull request #21330 from jasongi-at-sportsbet/master

updated types for cleave.js to 1.0.3
This commit is contained in:
Nathan Shively-Sanders
2017-11-13 15:32:06 -08:00
committed by GitHub
2 changed files with 5 additions and 2 deletions

View File

@@ -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

View File

@@ -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;
}