Uneventful

    Type Alias SignalSource<T>

    SignalSource: Source<T> & () => T

    The call signatures implemented by signals. (They can be used as sources, or called with no arguments to return a value.)

    This type is needed because TypeScript won't infer the overloads of Signal correctly otherwise. (Specifically, it won't allow it to be used as a zero-agument function.)

    Type Parameters

    • T

    Type declaration

      • (): T
      • A signal object can be called to get its current value

        Returns T

    MMNEPVFCICPMFPCPTTAAATR