Skip to main content

ISharedCounterEvents Interface

Events sent by ISharedCounter.

This API is provided for existing users, but is not recommended for new users.

To use, import via @fluidframework/counter/legacy.

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

Signature​

export interface ISharedCounterEvents extends ISharedObjectEvents

Extends: ISharedObjectEvents

Call Signatures​

Call SignatureAlertsReturn TypeDescription
(event: "incremented", listener: (incrementAmount: number, newValue: number) => void): anyBetaanyThis event is raised when the counter is incremented or decremented.

Call Signature Details​

(event: "incremented", listener: (incrementAmount: number, newValue: number) => void): any​

This event is raised when the counter is incremented or decremented.

This API is provided for existing users, but is not recommended for new users.

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

Signature​

(event: "incremented", listener: (incrementAmount: number, newValue: number) => void): any;