valgen 6.0.0 → 6.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/constants.js
CHANGED
package/package.json
CHANGED
|
@@ -17,6 +17,7 @@ export declare namespace isMobilePhone {
|
|
|
17
17
|
* Locale or locales of the mobile phone
|
|
18
18
|
* @default 'any'
|
|
19
19
|
*/
|
|
20
|
-
locale?: 'any' |
|
|
20
|
+
locale?: 'any' | MobilePhoneLocale | MobilePhoneLocale[];
|
|
21
21
|
}
|
|
22
|
+
type MobilePhoneLocale = _MobilePhoneLocale;
|
|
22
23
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import { PostalCodeLocale } from '@browsery/validator';
|
|
1
2
|
import { type ValidationOptions } from '../../core/index.js';
|
|
2
3
|
/**
|
|
3
4
|
* Validates if value is a passport number
|
|
4
5
|
* @validator isPassportNumber
|
|
5
6
|
*/
|
|
6
|
-
export declare function isPassportNumber(countryCode:
|
|
7
|
+
export declare function isPassportNumber(countryCode: isPassportNumber.CountryCode, options?: isPassportNumber.Options): import("../../core/validator.js").Validator<string, string, import("../../core/types.js").ExecutionOptions>;
|
|
7
8
|
export declare namespace isPassportNumber {
|
|
8
9
|
interface Options extends ValidationOptions {
|
|
9
10
|
}
|
|
11
|
+
type CountryCode = PostalCodeLocale;
|
|
10
12
|
}
|