Skip to content

KeyTypeParam

A keyed parameter, such as name: T or (K): T.

Inherits from: TypeParam

Fields

key @ Span

The span of the key as written. A bareword key is a symbol; any other key is a type, such as a quoted string or a parenthesized name.

key_ty @ (TypeExpr | nil)

The type giving the key, or nil for a bareword symbol.

ty @ TypeExpr

The parameter's type.