Skip to main content

NotificationSubscriptions TypeAlias

Record of notification subscriptions.

This API is provided as an alpha preview and may change without notice.

To use, import via @fluidframework/presence/alpha.

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

Signature

/** @sealed */
export type NotificationSubscriptions<E extends InternalUtilityTypes.NotificationEvents<E>> = {
[K in string & keyof InternalUtilityTypes.NotificationEvents<E>]: (sender: ISessionClient, ...args: InternalUtilityTypes.JsonDeserializedParameters<E[K]>) => void;
};

Type Parameters

Parameter Constraint Description
E InternalUtilityTypes.NotificationEvents<E>