@tempots/dom
EnsureAll() function
Ensures that all signals have a value before rendering a TNode.
Signature:
EnsureAll: <T extends readonly Value<any>[]>(...signals: { [K in keyof T]: NillifyValue<T[K]>; }) => (callback: (...values: { [K in keyof T]: Signal<NonNillable<T[K] extends Value<infer U> ? U : never>>; }) => TNode, otherwise?: () => TNode) => Renderable
Parameters
Parameter |
Type |
Description |
---|---|---|
signals |
{ [K in keyof T]: NillifyValue<T[K]>; } |
The signals to ensure have a value. |
Returns: (callback: (...values: { [K in keyof T]: Signal<NonNillable<T[K] extends Value<infer U> ? U : never>>; }) => TNode, otherwise?: () => TNode) => Renderable
A renderable function that ensures all signals have a value before rendering a TNode.