Loading...
Skip to main content

Module: core/node

This module defines the core node and element interfaces for AI.JSX.

See: https://ai-jsx.com for more details.

Interfaces

Type Aliases

Component

Ƭ Component<P>: (props: P, context: ComponentContext) => Renderable

Type parameters

Name
P

Type declaration

▸ (props, context): Renderable

Represents a single AI.JSX component.

Parameters
NameType
propsP
contextComponentContext
Returns

Renderable

Defined in

ai-jsx/src/core/node.ts:19


Literal

Ƭ Literal: string | number | null | undefined | boolean

A Literal represents a literal value.

Defined in

ai-jsx/src/core/node.ts:24


Node

Ƭ Node: Element<any> | Literal | Node[] | IndirectNode

A Node represents an element of an AI.JSX component tree.

Defined in

ai-jsx/src/core/node.ts:52

Functions

withContext

withContext(renderable, context): Node

Parameters

NameType
renderableRenderable
contextRenderContext

Returns

Node

Defined in

ai-jsx/src/core/node.ts:80