@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: <T extends Value<unknown>[]>(...args: T) => <O>(fn: (...args: GetValueTypes<T>) => O, equals?: (a: O, b: O) => boolean) => import('./signal').Computed<O>
Parameters
Parameter |
Type |
Description |
---|---|---|
args |
T |
Returns: <O>(fn: (...args: GetValueTypes<T>) => O, equals?: (a: O, b: O) => boolean) => import('./signal').Computed<O>
- The computed signal.