@tempots/dom
Computed.(constructor)
Represents a Signal object.
Signature:
constructor(_fn: () => T, equals: (a: T, b: T) => boolean);
Parameters
Parameter |
Type |
Description |
---|---|---|
_fn |
() => T |
The function that returns the value of the signal. |
equals |
(a: T, b: T) => boolean |
The function used to compare two values of type T for equality. |