Skip to main content

Crate wesley_emit_typescript

Crate wesley_emit_typescript 

Source
Expand description

AST-based TypeScript declaration emitter for Wesley L1 IR.

Constants§

DEFAULT_CODEC_IMPORT
Default import path the emitted module uses to reach the TypeScript Writer / Reader / CodecError primitives. Suitable for files written to <root>/src/generated/<app>/<schema>.codec.generated.ts when the primitives live at <root>/src/codec.ts.
GENERATOR_NAME
Stable generator identifier recorded in native emit metadata.
GENERATOR_VERSION
Version of the TypeScript emitter crate recorded in native emit metadata.
LE_BINARY_GENERATOR_NAME
Stable generator identifier for the LE binary codec TypeScript emitter.

Functions§

emit_le_binary_typescript
Emit a TypeScript LE binary codec module for the given Wesley IR.
emit_typescript
Emits TypeScript declarations for a Wesley L1 IR document.
emit_typescript_with_operations
Emits TypeScript declarations and operation bindings for a Wesley L1 IR document.