Module: core/render
This module defines the core rendering interfaces for AI.JSX.
See: https://ai-jsx.com for more details.
Interfaces
Type Aliases
Renderable
Ƭ Renderable: Node
| PromiseLike
<Renderable
> | RenderableStream
A Renderable represents a value that can be rendered to a string.
Defined in
Functions
AppendOnlyStream
▸ AppendOnlyStream(node?
): Object
A value that can be yielded by a component to indicate that each yielded value should be appended to, rather than replace, the previously yielded values.
Parameters
Name | Type |
---|---|
node? | Node |
Returns
Object
Name | Type |
---|---|
[appendOnlyStreamSymbol] | Node |
Defined in
createRenderContext
▸ createRenderContext(opts?
): RenderContext
Creates a new RenderContext with the provided logger.
Parameters
Name | Type |
---|---|
opts? | Object |
opts.enableOpenTelemetry? | boolean |
opts.logger? | LogImplementation |
Returns
A new RenderContext.