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

    Interface DrivingLicenseInfo

    Details of a valid driving licence number, returned by parseDrivingLicense.

    interface DrivingLicenseInfo {
        format: LicenseFormat;
        license: string;
        nicFormat?: "old" | "new";
        number: string;
    }
    Index

    Format of license number

    license: string

    Cleaned license string

    nicFormat?: "old" | "new"

    If NIC-based, whether it is old or new NIC

    number: string

    Number portion