UNPKG
pgh-common-utils
Version:
latest (1.0.1)
1.0.1
1.0.0
A collection of utility functions for TypeScript.
pgh-common-utils
/
dist
/
regex
/
index.d.ts
9 lines
(8 loc)
•
222 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
export
declare
const
RegexRules
: {
mobile
:
RegExp
;
email
:
RegExp
;
idCard
:
RegExp
;
url
:
RegExp
;
chinese
:
RegExp
; };
export
declare
function
validate
(
str
:
string
,
type
: keyof
typeof
RegexRules
):
boolean
;