Logo Xantham

CodeKey Module

Discriminated unions tagging a TypeKey with the kind of construct it identifies. Used by consumers (e.g. generators) that need to dispatch on the structural kind of a type or export without re-walking the full TsType/TsExportDeclaration.

Types

Type Description

CodeKey

Outer envelope distinguishing whether a TypeKey identifies an exported declaration (ExportCodeKey) or a structural type (TypeCodeKey).

ExportCodeKey

A TypeKey tagged with the TsExportDeclaration case it identifies.

TypeCodeKey

A TypeKey tagged with the TsType case it identifies.

Type something to start searching.