TypeViewModeltype-alias

A TypeScript type, represented as a tagged union.

Covers all TypeScript type constructs including primitives, generics, unions, intersections, conditional types, and reflections (inline object/function types).

{ kind: "reference"; name: string; typeArguments: TypeViewModel[]; url: string | null } | { kind: "union"; types: TypeViewModel[] } | { kind: "intersection"; types: TypeViewModel[] } | { kind: "literal"; value: string } | { elementType: TypeViewModel; kind: "array" } | { elements: TypeViewModel[]; kind: "tuple" } | { kind: "intrinsic"; name: string } | { kind: "reflection"; members: MemberViewModel[]; signatures: SignatureViewModel[] } | { kind: "type-operator"; operator: string; target: TypeViewModel } | { indexType: TypeViewModel; kind: "indexed-access"; objectType: TypeViewModel } | { checkType: TypeViewModel; extendsType: TypeViewModel; falseType: TypeViewModel; kind: "conditional"; trueType: TypeViewModel } | { kind: "unknown"; raw: string }