@tempots/dom
makeComputedRecord() function
Computes a value based on a record of signals and literals.
Signature:
makeComputedRecord: extends Record<string, Value<unknown>>, O>(record: T, fn: (value: RemoveSignals) => O) => Computed
Parameters
Parameter |
Type |
Description |
---|---|---|
record |
T |
The record containing signals and literals. |
fn |
(value: RemoveSignals |
The function to compute the value based on the literals. |
Returns: Computed
- The computed value as a signal.