lanka-validations - v2.1.0
    Preparing search index...

    Interface PassportInfo

    Details of a valid passport number, returned by parsePassport. The type is inferred from the prefix only and is not verified.

    interface PassportInfo {
        isEPassport: boolean;
        number: string;
        passport: string;
        prefix: string;
        type: PassportType;
    }
    Index
    isEPassport: boolean

    Whether the passport matches the new e-Passport pattern

    number: string

    Numeric digits part

    passport: string

    Cleaned passport number string

    prefix: string

    Series prefix letter(s)

    Passport type classification