nationid - v0.6.0
    Preparing search index...

    Type Alias ParseResult

    ParseResult:
        | {
            code: DocumentTypeCode;
            confidence: Confidence;
            formatted: string;
            normalized: string;
            ok: true;
        }
        | { code: DocumentTypeCode; ok: false; reason: ParseError }

    Discriminated union returned by parse().

    No exceptions are thrown from public API.