Crate camo_typescript

Source
Expand description

A crate for representing and creating TypeScript type definitions as values, i. e. a subset of the TypeScript abstract syntax.

Structs§

ArrayType
An array type expression.
Field
A field in e.g. an interface or an object type.
Interface
A top-level interface definition.
IntersectionType
An intersection type.
ObjectType
An object type.
PathSegment
A segment of a type path.
TypeAlias
A top-level type definition. Example:
TypePath
The name of a type.
UnionType
A type with multiple cases.
Variant
A variant of a union type.

Enums§

BuiltinType
The built-in types.
Definition
A top-level type definition.
LiteralType
A literal type.
Type
Represents a type use, e. g. in an interface definition, function type definition, or type alias.