Type alias SubscriberFunction<T>

SubscriberFunction<T>: ((value) => void) & Partial<Omit<SubscriberObject<T>, "next">>

A callback invoked when a store value changes. It is called with the latest value of a given store.

Type Parameters

  • T

Type declaration

    • (value): void
    • Parameters

      • value: T

      Returns void

Generated using TypeDoc