cross-stitch - v2.0.0
    Preparing search index...

    Type Alias PatternIssue

    PatternIssue:
        | IssueParams & IssueLocation
        | {
            code: | "invalid-type"
            | "out-of-range"
            | "invalid-format"
            | "invalid-value";
            kind: "schema-violation";
        } & IssueLocation

    A validation problem found in a pattern, as a discriminated union on kind. The semantic variants describe cross-stitch-specific rule violations and derive from IssueParams (the single source of truth for those rules), each carrying structured data; the schema-violation variant is the catch-all for structural and primitive failures, tagged with a coarse owned code. Every variant also carries the offending path and a human-readable message.