@kayahr/signal
    Preparing search index...

    Interface Setter<T>

    Updates the value of a signal directly or from its current value.

    Type Parameters

    • T
    • Updates the signal to the provided value.

      Parameters

      • value: T

        The next signal value.

      Returns void

    • Updates the signal with a value derived from its current value.

      Parameters

      • value: (value: T) => T

        A function deriving the next signal value from the current one.

      Returns void