API referenceEngine
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
Methods
build()
build(values): readonly BearElement<object>[];Defined in: bear/engine/hosting.ts:16
Parameters
| Parameter | Type |
|---|---|
values | readonly unknown[] |
Returns
readonly BearElement<object>[]
HostSlot
Defined in: bear/engine/hosting.ts:5
Type Parameters
Properties
Methods
contribute()
contribute(describe): void;Defined in: bear/engine/hosting.ts:9
Declare data to the nearest enclosing host of this slot.
Parameters
| Parameter | Type |
|---|---|
describe | (member) => T |
Returns
void
Functions
createHostSlot()
function createHostSlot<T>(name): HostSlot<T>;Defined in: bear/engine/hosting.ts:19
Type Parameters
Parameters
| Parameter | Type |
|---|---|
name | string |
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
Parameters
| Parameter | Type |
|---|---|
slot | HostSlot<T> |
build | (values) => readonly BearElement<object>[] |