forked from wellenzhong/cn-validator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
40 lines (35 loc) · 800 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
declare interface licenseInfo {
adminDep: string
orgType: string
adminArea: string
orgIdCode: string
verifyCode: string
}
declare interface license {
isValid(code: string): boolean
getInfo(code: string): licenseInfo
makeId(): string
makeId(nums: number): string[]
}
declare interface orgLicenseCode {
isValid(orgCode: string): boolean
}
declare interface personInfo {
address: string
birthday: string
sex: string
sexTxt: string
age: string
}
declare interface personID {
isValid(code: string): boolean
getInfo(code: string): personInfo
makeId(): string
makeId(nums: number): string[]
}
export default class cnValidator {
constructor()
license: license
orgLicenseCode: orgLicenseCode
personID: personID
}