Skip to main content

@fluidframework/map Package

The map library provides interfaces and implementing classes for map-like distributed data structures.

Remarks

The following distributed data structures are defined in this library:

  • SharedMap
  • SharedDirectory

Interfaces

InterfaceAlertsModifiersDescription
ICreateInfoDeprecated, LegacyCreate info for the subdirectory.
IDirectoryLegacysealedInterface describing actions on a directory.
IDirectoryDataObjectDeprecated, LegacyDefines the in-memory object structure to be used for the conversion to/from serialized.
IDirectoryEventsLegacysealedEvents emitted in response to changes to the directory data.
IDirectoryNewStorageFormatDeprecated, LegacyIDirectory storage format.
IDirectoryValueChangedLegacysealedType of "valueChanged" event parameter for ISharedDirectory.
ISerializableValueDeprecated, LegacyThe _ready-for-serialization_ format of values contained in DDS contents. This allows us to use type to understand whether they're storing a Plain JavaScript object, a SharedObject, or a value type.
ISharedDirectoryLegacysealedProvides a hierarchical organization of map-like data structures as SubDirectories. The values stored within can be accessed like a map, and the hierarchy can be navigated using path syntax. SubDirectories can be retrieved for use as working directories.
ISharedDirectoryEventsLegacysealedEvents emitted in response to changes to the directory data.
ISharedMapLegacysealedThe SharedMap distributed data structure can be used to store key-value pairs.
ISharedMapEventsLegacysealedEvents emitted in response to changes to the map data.
IValueChangedLegacysealedType of "valueChanged" event parameter.

Classes

ClassAlertsModifiersDescription
DirectoryFactoryLegacysealedIChannelFactory for ISharedDirectory.
MapFactoryLegacysealedIChannelFactory for ISharedMap.

Types

TypeAliasAlertsDescription
SharedDirectoryLegacyEntrypoint for ISharedDirectory creation.
SharedMapLegacyEntrypoint for ISharedMap creation.

Variables

VariableAlertsModifiersTypeDescription
SharedDirectoryLegacyreadonlyimport("@fluidframework/shared-object-base/internal").ISharedObjectKind<ISharedDirectory> & import("@fluidframework/shared-object-base/internal").SharedObjectKind<ISharedDirectory>Entrypoint for ISharedDirectory creation.
SharedMapLegacyreadonlyimport("@fluidframework/shared-object-base/internal").ISharedObjectKind<ISharedMap> & import("@fluidframework/shared-object-base/internal").SharedObjectKind<ISharedMap>Entrypoint for ISharedMap creation.

Variable Details

SharedDirectory

Entrypoint for ISharedDirectory creation. \

This API is provided for existing users, but is not recommended for new users.

To use, import via @fluidframework/map/legacy.

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

Signature

SharedDirectory: import("@fluidframework/shared-object-base/internal").ISharedObjectKind<ISharedDirectory> & import("@fluidframework/shared-object-base/internal").SharedObjectKind<ISharedDirectory>

Type: import("@fluidframework/shared-object-base/internal").ISharedObjectKind<ISharedDirectory> & import("@fluidframework/shared-object-base/internal").SharedObjectKind<ISharedDirectory>

SharedMap

Entrypoint for ISharedMap creation. \

This API is provided for existing users, but is not recommended for new users.

To use, import via @fluidframework/map/legacy.

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

Signature

SharedMap: import("@fluidframework/shared-object-base/internal").ISharedObjectKind<ISharedMap> & import("@fluidframework/shared-object-base/internal").SharedObjectKind<ISharedMap>

Type: import("@fluidframework/shared-object-base/internal").ISharedObjectKind<ISharedMap> & import("@fluidframework/shared-object-base/internal").SharedObjectKind<ISharedMap>