@fluidframework/counter Package
Packages > @fluidframework/counter
This library contains the SharedCounter
distributed data structure. A SharedCounter
is a shared object which holds a whole number that can be incremented or decremented.
Interfaces
Interface | Alerts | Description |
---|---|---|
ISharedCounter | Legacy , Alpha |
A shared object that holds a number that can be incremented or decremented. |
ISharedCounterEvents | Legacy , Alpha |
Events sent by ISharedCounter. |
Types
TypeAlias | Alerts | Description |
---|---|---|
SharedCounter | Legacy , Alpha |
Alias for ISharedCounter for compatibility. |
Variables
Variable | Alerts | Modifiers | Type | Description |
---|---|---|---|---|
SharedCounter | Legacy , Alpha |
readonly |
import("@fluidframework/shared-object-base/internal").ISharedObjectKind<ISharedCounter> & import("@fluidframework/shared-object-base/internal").SharedObjectKind<ISharedCounter> | Entrypoint for ISharedCounter creation. |
Variable Details
SharedCounter
Entrypoint for ISharedCounter creation.
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
SharedCounter: import("@fluidframework/shared-object-base/internal").ISharedObjectKind<ISharedCounter> & import("@fluidframework/shared-object-base/internal").SharedObjectKind<ISharedCounter>
Type: import("@fluidframework/shared-object-base/internal").ISharedObjectKind <ISharedCounter > & import("@fluidframework/shared-object-base/internal").SharedObjectKind <ISharedCounter >