Briyah SDK - v2.0.18
    Preparing search index...

    Type Alias ChartValidation

    ChartValidation:
        | { error?: undefined; ok: true; spec: ChartSpec }
        | { error: string; ok: false; spec?: undefined }

    Each branch names the other's field as absent: this project compiles without strictNullChecks, which turns off narrowing on ok, and a caller reads error after if (!checked.ok).