Skip to main content

IfNotificationSubscriberSignature TypeAlias

Yields IfSubscriber when the given type is an acceptable shape for a notification listener (subscriber) function. Else otherwise.

This API is reserved for internal system use and should not be imported directly. It may change at any time without notice.

For more information about our API support guarantees, see here.

Signature

type IfNotificationSubscriberSignature<Event, IfSubscriber, Else> = Event extends (sender: Attendee, ...args: infer P) => void ? CoreInternalUtilityTypes.IfSameType<P, JsonSerializable<P>, IfSubscriber, Else> : Else;

Type Parameters

ParameterDescription
Event
IfSubscriber
Else