Counter Class
Packages > @fluidframework/map > Counter
Warning: This API is now obsolete.
The Counter value type is deprecated. Use the Counter shared object instead (@fluidframework/counter)
Signature:
export declare class Counter extends EventEmitter
Extends: EventEmitter
Methods
Method | Modifiers | Description |
---|---|---|
on(event, listener) |
Methods
on
Signature:
on(event: "incremented", listener: (incrementValue: number, currentValue: number) => void): this;
Parameters
Parameter | Type | Description |
---|---|---|
event | "incremented" | |
listener | (incrementValue: number, currentValue: number) => void |
Returns:
this