IfNotificationListener TypeAlias
Yields IfListener when the given type is an acceptable shape for a notification. 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 IfNotificationListener<Event, IfListener, Else> = Event extends (...args: infer P) => void ? CoreInternalUtilityTypes.IfSameType<P, JsonSerializable<P>, IfListener, Else> : Else;
Type Parameters
| Parameter | Description |
|---|---|
| Event | |
| IfListener | |
| Else |