Crate specta_typescript

Source
Expand description

TypeScript language exporter.

Modules§

comments
formatter
js_doc

Structs§

CommentFormatterArgs
ExportPath
Represents the path of an error in the export tree. This is designed to be opaque, meaning it’s internal format and Display impl are subject to change at will.
Typescript
Typescript language exporter.

Enums§

BigIntExportBehavior
Allows you to configure how Specta’s Typescript exporter will deal with BigInt types (i64, i128 etc).
ExportError
The error type for the TypeScript exporter.
NamedLocation
Describes where an error occurred.

Functions§

datatype
Convert a DataType to a TypeScript string
export
Convert a type which implements Type to a TypeScript string with an export.
export_named_datatype
Convert a DataType to a TypeScript string
export_ref
Convert a type which implements Type to a TypeScript string with an export.
inline
Convert a type which implements Type to a TypeScript string.
inline_ref
Convert a type which implements Type to a TypeScript string.

Type Aliases§

CommentFormatterFn
The signature for a function responsible for exporting Typescript comments.
FormatterFn
The signature for a function responsible for formatter a Typescript file.
Result