Module schema

Module schema 

Source
Expand description

TypeScript schema generation for runtime channel binding.

Generates runtime schema information that allows the TypeScript runtime to discover and bind streaming channels (Tx/Rx) in method arguments.

The generated schemas use the new EnumVariant[] format:

{ kind: 'enum', variants: [
  { name: 'Circle', fields: [{ kind: 'f64' }] },
  { name: 'Point', fields: null },
] }

Functionsยง

generate_binding_serializers
Generate BindingSerializers for runtime channel binding. These provide encode/decode functions based on schema element types.
generate_method_schemas
Generate method schemas for runtime channel binding and encoding/decoding.
generate_schema
Generate a TypeScript Schema object literal for a type. Used by the runtime binder to find and bind Tx/Rx channels.
generate_schemas
Generate complete schema exports (method schemas + serializers).