Crate specta_typescript
source ·Expand description
TypeScript language exporter.
Modules§
Structs§
- Options for controlling the behavior of the Typescript exporter.
- Represents the path of an error in the export tree. This is designed to be opaque, meaning it’s internal format and
Displayimpl are subject to change at will.
Enums§
- The error type for the TypeScript exporter.
- Describes where an error occurred.
Functions§
- Convert a DataType to a TypeScript string
- Convert a type which implements
Typeto a TypeScript string with an export. - export_function_header
functionConvert a [FunctionDataType] into a function header like would be used in a.d.tsfile. If your function requires a function body you can copy this function into your own codebase. - Convert a DataType to a TypeScript string
- Convert a type which implements
Typeto a TypeScript string with an export. - Convert a type which implements
Typeto a TypeScript string. - Convert a type which implements
Typeto a TypeScript string.
Type Aliases§
- The signature for a function responsible for exporting Typescript comments.
- The signature for a function responsible for formatter a Typescript file.