This is like a writable signal, but the inputs and outputs are different types.

interface TransformedSignal<TIn, TOut> {
    [SIGNAL]: unknown;
    asReadonly(): Signal<TOut>;
    set(value: TIn): void;
    update(updateFn: ((value: TIn) => TIn)): void;
    (): TOut;
}

Type Parameters

  • TIn

    The input type used in set and update.

  • TOut

    The output type used in asReadonly or when this is called as a signal.

Hierarchy (view full)

Methods

Properties

Methods

Properties

[SIGNAL]: unknown