Interface: ComputedOptions<T>
API / @xmachines/play-signals / ComputedOptions
Defined in: packages/play-signals/src/types.ts:85
The options of a Signal.Computed
Param
equals
The optional equality function of your own, for the memoization
Example
import { Signal } from "@xmachines/play-signals";import type { ComputedOptions } from "@xmachines/play-signals";
const options: ComputedOptions<string> = { equals: (a, b) => a.toLowerCase() === b.toLowerCase(),};Type Parameters
| Type Parameter |
|---|
T |
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
equals? | (a, b) => boolean | The equality function of your own, for the memoization | packages/play-signals/src/types.ts:89 |