SubscriptionCallback<T>: ((data: SubscriptionData<T>, subscription: ActiveSubscription<T>) => void)

Represents a callback function used in a subscription.

Type Parameters

  • T = any

    The type of data being passed to the callback

Type declaration