@tempots/dom
makeComputedOf() function
Creates a computed signal that depends on other signals or literal values and updates when any of the dependencies change.
Signature:
makeComputedOf: extends Value<unknown>[]>(...args: T) => (fn: (...args: GetValueTypes) => O, equals?: (a: O, b: O) => boolean) => import('./signal').Computed
Parameters
Parameter |
Type |
Description |
---|---|---|
args |
T |
Returns:
- The computed signal.