Type Alias EqualFunction<T>

EqualFunction: (a: T, b: T) => boolean

The type of an equal function which can be given to a signal to check if a value has changed. It takes the old and the new value as parameters and must return true if the values are equal, or false if not.

Type Parameters

  • T = unknown

Type declaration

    • (a: T, b: T): boolean
    • Parameters

      Returns boolean