idnumbers
    Preparing search index...

    Interface SriLankaParseResult

    Base type of every parse result: a record of named fields.

    Each country's parse result extends it with the fields it declares (e.g. HUN.HungaryParseResult). Used on its own, for a country code that is not known at compile time, every field reads as unknown until narrowed (#123).

    interface SriLankaParseResult {
        birthDate: Date;
        checksum: CheckDigit;
        citizenship?: Citizenship;
        gender: Gender;
        isValid: boolean;
        serialNumber: string;
        [key: string]: unknown;
    }

    Hierarchy (View Summary)

    Indexable

    • [key: string]: unknown
    Index
    birthDate: Date
    checksum: CheckDigit
    citizenship?: Citizenship

    Never set since #296. The old NIC's V/X suffix records voter eligibility, not citizenship, so the value cannot be derived. The field stays only for type compatibility.

    gender: Gender
    isValid: boolean
    serialNumber: string