Module specta::js_doc

source ·
Available on crate features js_doc and typescript only.
Expand description

JSDoc helpers.

Also requires typescript feature to be enabled.

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 Display impl are subject to change at will.

Enums§

Functions§

  • Convert a DataType to a TypeScript string
  • Convert a type which implements Type to a TypeScript string with an export.
  • Convert a [FunctionDataType] into a function header like would be used in a .d.ts file. 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 Type to a TypeScript string with an export.
  • Convert a type which implements Type to a TypeScript string.
  • Convert a type which implements Type to 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.