Skip to main content

IfNotificationParametersSignature TypeAlias

Yields IfParametersValid 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 IfNotificationParametersSignature<Event, IfParametersValid, Else> = Event extends (...args: infer P) => void ? CoreInternalUtilityTypes.IfSameType<P, JsonSerializable<P>, IfParametersValid, Else> : Else;

Type Parameters

ParameterDescription
Event
IfParametersValid
Else