@blendsdk/year-planner-core
    Preparing search index...

    Type Alias DateParseResult

    DateParseResult:
        | { date: DateKey; ok: true }
        | { diagnostic: Diagnostic; ok: false }

    Result of parsing a date key: either the canonical date or a diagnostic.

    Type Declaration

    • { date: DateKey; ok: true }
      • date: DateKey

        Canonical date key.

      • ok: true

        True when the key parsed.

    • { diagnostic: Diagnostic; ok: false }
      • diagnostic: Diagnostic

        Reason the key was rejected.

      • ok: false

        False when the key is invalid.