@fluidframework/counter Package
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 | A shared object that holds a number that can be incremented or decremented. |
| ISharedCounterEvents | Legacy | Events sent by ISharedCounter. |
Types
| TypeAlias | Alerts | Description |
|---|---|---|
| SharedCounter | Legacy | Alias for ISharedCounter for compatibility. |
Variables
| Variable | Alerts | Modifiers | Type | Description |
|---|---|---|---|---|
| SharedCounter | Legacy | 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>