Skip to content 

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

List of methods on this class
Method Modifiers Description
on(event, listener)

Methods

on

Signature:

on(event: "incremented", listener: (incrementValue: number, currentValue: number) => void): this;

Parameters

List of parameters
Parameter Type Description
event "incremented"
listener (incrementValue: number, currentValue: number) => void

Returns:

this