UNPKG
@ivandt/json-rules
Version:
latest (2.2.0)
2.2.0
2.1.1
2.1.0
2.0.0
1.7.3
1.7.2
1.7.1
1.7.0
Rule parsing engine for JSON rules
github.com/xe4me/json-rules
xe4me/json-rules
@ivandt/json-rules
/
dist
/
services
/
validators
/
phone.d.ts
8 lines
(7 loc)
•
292 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
import
{
PhoneValidationConfig
}
from
"../../types"
;
/** * Validates phone numbers using validator.js * Users must import required locales themselves: * import "validator/lib/locales/en-US"; */
export
declare
function
validatePhone
(
value
:
string
,
config
:
PhoneValidationConfig
):
boolean
;