UNPKG

smart-id-validator

Version:

A package to validate official document numbers and other IDs format for various countries.

19 lines (17 loc) 419 B
export interface PhoneValidationResult { isValid: boolean; type?: "mobile" | "landline" | "tollFree" | "emergency" | "shortcode"; formatted?: string; network?: string; country?: string; } export interface CNICValidationResult { isValid: boolean; formatted?: string; country?: string; } export interface PasspostValidateResult { isValid: boolean; formatted?: string; country?: string; }