Skip to content

TypeMismatchResult

Defined in: src/runtime/diagnostics.ts:101

An expression parsed, but a constraint rejected it.

code: "TYPE_MISMATCH"

Defined in: src/runtime/diagnostics.ts:102


message: string

Defined in: src/runtime/diagnostics.ts:103


position: number

Defined in: src/runtime/diagnostics.ts:105

0-based offset into the input


expected: readonly string[]

Defined in: src/runtime/diagnostics.ts:107

The one constraint description the slot expected


found: string

Defined in: src/runtime/diagnostics.ts:109

The next few characters at position