@types/validator
Advanced tools
Comparing version 13.7.12 to 13.7.13
@@ -15,2 +15,3 @@ // Type definitions for validator.js 13.7 | ||
// Matteo Nista <https://github.com/Mattewn99> | ||
// Roman Babiak <https://github.com/Almost-Infinity> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -275,6 +276,13 @@ | ||
interface IsCreditCardOptions { | ||
/** | ||
* @default undefined | ||
*/ | ||
provider?: 'amex' | 'dinersclub' | 'discover' | 'jcb' | 'mastercard' | 'unionpay' | 'visa' | ''; | ||
} | ||
/** | ||
* Check if the string is a credit card. | ||
*/ | ||
function isCreditCard(str: string): boolean; | ||
function isCreditCard(str: string, options?: IsCreditCardOptions): boolean; | ||
@@ -281,0 +289,0 @@ interface IsCurrencyOptions { |
{ | ||
"name": "@types/validator", | ||
"version": "13.7.12", | ||
"version": "13.7.13", | ||
"description": "TypeScript definitions for validator.js", | ||
@@ -67,2 +67,7 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/validator", | ||
"githubUsername": "Mattewn99" | ||
}, | ||
{ | ||
"name": "Roman Babiak", | ||
"url": "https://github.com/Almost-Infinity", | ||
"githubUsername": "Almost-Infinity" | ||
} | ||
@@ -79,4 +84,4 @@ ], | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "011db9f0d21612e8f4fca0ba5b473f3d2554a00b126c77edf313dd63a9db8cc2", | ||
"typesPublisherContentHash": "5b11c6364f516d04f829e2e87ac85ae94c4458b29f5a70bbd97c3133b5b79a12", | ||
"typeScriptVersion": "4.2" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Sat, 04 Feb 2023 13:02:41 GMT | ||
* Last updated: Thu, 02 Mar 2023 19:32:46 GMT | ||
* Dependencies: none | ||
@@ -17,2 +17,2 @@ * Global values: `validator` | ||
# Credits | ||
These definitions were written by [tgfjt](https://github.com/tgfjt), [Ilya Mochalov](https://github.com/chrootsu), [Ayman Nedjmeddine](https://github.com/IOAyman), [Louay Alakkad](https://github.com/louy), [Bonggyun Lee](https://github.com/deptno), [Naoto Yokoyama](https://github.com/builtinnya), [Philipp Katz](https://github.com/qqilihq), [Jace Warren](https://github.com/keatz55), [Munif Tanjim](https://github.com/MunifTanjim), [Vlad Poluch](https://github.com/vlapo), [Piotr Błażejewicz](https://github.com/peterblazejewicz), and [Matteo Nista](https://github.com/Mattewn99). | ||
These definitions were written by [tgfjt](https://github.com/tgfjt), [Ilya Mochalov](https://github.com/chrootsu), [Ayman Nedjmeddine](https://github.com/IOAyman), [Louay Alakkad](https://github.com/louy), [Bonggyun Lee](https://github.com/deptno), [Naoto Yokoyama](https://github.com/builtinnya), [Philipp Katz](https://github.com/qqilihq), [Jace Warren](https://github.com/keatz55), [Munif Tanjim](https://github.com/MunifTanjim), [Vlad Poluch](https://github.com/vlapo), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Matteo Nista](https://github.com/Mattewn99), and [Roman Babiak](https://github.com/Almost-Infinity). |
67670
2327