Module type_expr

Source
Expand description

This module defines structs used to create static descriptions of TypeScript type definitions.

Structs§

DefinedTypeInfo
Type information describing a “defined” TypeScript type.
Docs
A documentation string.
Ident
A TypeScript identifier.
IndexSignature
An index signature of a TypeScript object type.
NativeTypeInfo
Type information describing a “native” TypeScript type.
ObjectField
A field of a TypeScript object type.
TypeArray
A TypeScript array type.
TypeDefinition
The TypeScript definition of a type.
TypeIntersection
A TypeScript intersection type.
TypeName
A reference to a built-in TypeScript type, analogous to a Rust path with optional generics.
TypeObject
A TypeScript object type.
TypeString
A TypeScript type-level string literal.
TypeTuple
A TypeScript tuple type.
TypeUnion
A TypeScript union type.

Enums§

TypeExpr
A TypeScript type expression.
TypeInfo
A description of the type information required to produce a TypeScript type definition.

Type Aliases§

List
An alias for lists used in type expressions.