Skip to Content
Bear documentation

hosting

Import from bear/engine/hosting.

Interfaces

HostedChildren

Defined in: bear/engine/hosting.ts:13

Erased only at the collector boundary; hostChildren preserves the slot's type.

Properties

PropertyModifierType
keyreadonlysymbol
namereadonlystring

Methods

build()
build(values): readonly BearElement<object>[];

Defined in: bear/engine/hosting.ts:16

Parameters
ParameterType
valuesreadonly unknown[]
Returns

readonly BearElement<object>[]


HostSlot

Defined in: bear/engine/hosting.ts:5

Type Parameters

Type Parameter
T

Properties

PropertyModifierType
keyreadonlysymbol
namereadonlystring

Methods

contribute()
contribute(describe): void;

Defined in: bear/engine/hosting.ts:9

Declare data to the nearest enclosing host of this slot.

Parameters
ParameterType
describe(member) => T
Returns

void

Functions

createHostSlot()

function createHostSlot<T>(name): HostSlot<T>;

Defined in: bear/engine/hosting.ts:19

Type Parameters

Type Parameter
T

Parameters

ParameterType
namestring

Returns

HostSlot<T>


hostChildren()

function hostChildren<T>(slot, build): HostedChildren;

Defined in: bear/engine/hosting.ts:29

Collect authored children first, then append host-owned elements from their declarations.

Type Parameters

Type Parameter
T

Parameters

ParameterType
slotHostSlot<T>
build(values) => readonly BearElement<object>[]

Returns

HostedChildren

On this page