@types/credit-card-type
Advanced tools
Comparing version 5.0.1 to 7.0.0
@@ -1,31 +0,39 @@ | ||
// Type definitions for Credit Card Type v5.0.0 | ||
// Type definitions for Credit Card Type v7.0.0 | ||
// Project: https://github.com/braintree/credit-card-type | ||
// Definitions by: Karol Janyst <https://github.com/LKay> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.9 | ||
declare namespace creditCardType { | ||
type CardBrand = | ||
| "american-express" | ||
| "diners-club" | ||
| "discover" | ||
| "jcb" | ||
| "maestro" | ||
| "mastercard" | ||
| "unionpay" | ||
| "visa"; | ||
type CardBrand = "american-express" | "diners-club" | "discover" | "jcb" | "maestro" | "master-card" | "unionpay" | "visa" | ||
interface CreditCardTypeInfo { | ||
niceType?: string | ||
type?: CardBrand | ||
prefixPattern?: RegExp | ||
exactPattern?: RegExp | ||
gaps?: Array<number> | ||
lengths?: Array<number> | ||
niceType?: string; | ||
type?: CardBrand; | ||
prefixPattern?: RegExp; | ||
exactPattern?: RegExp; | ||
gaps?: Array<number>; | ||
lengths?: Array<number>; | ||
code?: { | ||
name?: string | ||
size?: number | ||
} | ||
name?: string; | ||
size?: number; | ||
}; | ||
} | ||
interface CreditCardType { | ||
(number: string): Array<CreditCardTypeInfo> | ||
getTypeInfo (type: string): CreditCardTypeInfo | ||
types: { [type: string]: string } | ||
(number: string): Array<CreditCardTypeInfo>; | ||
getTypeInfo(type: string): CreditCardTypeInfo; | ||
types: { [type: string]: string }; | ||
} | ||
} | ||
declare const creditCardType: creditCardType.CreditCardType | ||
export = creditCardType | ||
declare const creditCardType: creditCardType.CreditCardType; | ||
export = creditCardType; |
{ | ||
"name": "@types/credit-card-type", | ||
"version": "5.0.1", | ||
"version": "7.0.0", | ||
"description": "TypeScript definitions for Credit Card Type", | ||
"license": "MIT", | ||
"author": "Karol Janyst <https://github.com/LKay>", | ||
"contributors": [ | ||
{ | ||
"name": "Karol Janyst", | ||
"url": "https://github.com/LKay", | ||
"githubUsername": "LKay" | ||
} | ||
], | ||
"main": "", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
}, | ||
"scripts": {}, | ||
"dependencies": {}, | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "bb580837d0ec419ab342e5b53b2558ac72544163d76593f2c50bcfdf9183c6e6", | ||
"typeScriptVersion": "2.0" | ||
"typesPublisherContentHash": "5168dd4843627fcb8f3233fac036b61eb9ee4db76075850677b46a59d96ac457", | ||
"typeScriptVersion": "2.9" | ||
} |
@@ -8,6 +8,6 @@ # Installation | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/credit-card-type | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/credit-card-type | ||
Additional Details | ||
* Last updated: Fri, 27 Jan 2017 00:03:31 GMT | ||
* Last updated: Wed, 05 Sep 2018 18:20:01 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: none |
3442
35