Type alias PureSetter<T>

PureSetter<T>: ((new_value) => boolean)

type definition for a signal value setter function.
it differs from the actual returned Setter type of a signal create function, in that it lacks the id information of its own signal.
use this version when annotating signal value setters who's ids are not read (quite common), otherwise opt out for Setter if you do intend to read the id of the signal setter (seldom used in dynamic signals).

Type Parameters

  • T

Type declaration

    • (new_value): boolean
    • Parameters

      Returns boolean

Generated using TypeDoc