effect-io-ai

Package: effect
Module: SchemaRepresentation

SchemaRepresentation.toCodeDocument

Generates TypeScript source for live schema representations and their definitions.

When to use

Use when custom declarations and checks provide toCode callbacks and must be emitted without a central handler registry.

Gotchas

Opaque declarations and leaf checks require toCode callbacks. Callback results are used directly, and exceptions raised by a callback pass through unchanged.

Signature

declare const toCodeDocument: (document: MultiDocument) => CodeDocument

Source

Since v4.0.0