identity-number 0.0.3 → 0.0.4
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/index.d.ts +4 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -61,7 +61,7 @@ declare module "identity-number" {
|
|
|
61
61
|
/**
|
|
62
62
|
* 身份证号码类
|
|
63
63
|
*/
|
|
64
|
-
|
|
64
|
+
declare var Identity: IdentityConstructor;
|
|
65
65
|
|
|
66
66
|
interface Mobile {
|
|
67
67
|
get isValid(): boolean;
|
|
@@ -90,6 +90,8 @@ declare module "identity-number" {
|
|
|
90
90
|
belongToOperator(phoneNumber: string): string;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
+
declare var Mobile: MobileConstructor;
|
|
94
|
+
|
|
93
95
|
/**
|
|
94
96
|
* #### 字符串文本清洗
|
|
95
97
|
* 1. 去除换行符
|
|
@@ -98,7 +100,7 @@ declare module "identity-number" {
|
|
|
98
100
|
* @param str 文本字符串
|
|
99
101
|
* @returns
|
|
100
102
|
*/
|
|
101
|
-
|
|
103
|
+
declare function strCleaning(str: string): string;
|
|
102
104
|
}
|
|
103
105
|
|
|
104
106
|
interface IRegExp<T = RegExp> {
|