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

CallSignature Alerts Description
(event: "incremented", listener: (incrementAmount: number, newValue: number) => void): any Alpha This 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 as an alpha preview and may change without notice.

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

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

Signature

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