IDirectoryDataObject Interface
Defines the in-memory object structure to be used for the conversion to/from serialized.
- This interface will no longer be exported in the future(AB#8004).
To use, import via @fluidframework/map/legacy
.
For more information about our API support guarantees, see here.
Signature
export interface IDirectoryDataObject
Remarks
Directly used in JSON.stringify, direct result from JSON.parse.
Properties
Property | Alerts | Modifiers | Type | Description |
---|---|---|---|---|
ci | Alpha |
optional |
ICreateInfo | Create info for the sub directory. Since directories with same name can get deleted/created by multiple clients asynchronously, this info helps us to determine whether the ops where for the current instance of sub directory or not and whether to process them or not based on that. Summaries which were not produced which this change will not have this info and in that case we can still run in eventual consistency issues but that is no worse than the state before this change. |
storage | Alpha |
optional |
Record<string, ISerializableValue> | Key/value date set by the user. |
subdirectories | Alpha |
optional |
Record<string, IDirectoryDataObject> | Recursive sub-directories objects. |
Property Details
ci
Create info for the sub directory. Since directories with same name can get deleted/created by multiple clients asynchronously, this info helps us to determine whether the ops where for the current instance of sub directory or not and whether to process them or not based on that. Summaries which were not produced which this change will not have this info and in that case we can still run in eventual consistency issues but that is no worse than the state before this change.
To use, import via @fluidframework/map/alpha
.
For more information about our API support guarantees, see here.
Signature
ci?: ICreateInfo;
Type: ICreateInfo
storage
Key/value date set by the user.
To use, import via @fluidframework/map/alpha
.
For more information about our API support guarantees, see here.
Signature
storage?: Record<string, ISerializableValue>;
Type: Record<string, ISerializableValue>
subdirectories
Recursive sub-directories objects.
To use, import via @fluidframework/map/alpha
.
For more information about our API support guarantees, see here.
Signature
subdirectories?: Record<string, IDirectoryDataObject>;
Type: Record<string, IDirectoryDataObject>