IAttributionCollectionSerializer Interface
This API is provided for existing users, but is not recommended for new users.
To use, import via @fluidframework/merge-tree/legacy
.
For more information about our API support guarantees, see here.
Signature
/** @sealed */
export interface IAttributionCollectionSerializer
Methods
Method | Alerts | Return Type | Description |
---|---|---|---|
populateAttributionCollections(segments, summary) | Alpha |
void | Populates attribution information on segments using the provided summary. |
serializeAttributionCollections(segments) | Alpha |
SerializedAttributionCollection |
Method Details
populateAttributionCollections
Populates attribution information on segments using the provided summary.
This API is provided for existing users, but is not recommended for new users.
For more information about our API support guarantees, see here.
Signature
populateAttributionCollections(segments: Iterable<ISegment>, summary: SerializedAttributionCollection): void;
Parameters
Parameter | Type | Description |
---|---|---|
segments | Iterable<ISegment> | |
summary | SerializedAttributionCollection |
serializeAttributionCollections
This API is provided for existing users, but is not recommended for new users.
For more information about our API support guarantees, see here.
Signature
serializeAttributionCollections(segments: Iterable<{
attribution?: IAttributionCollection<AttributionKey>;
cachedLength: number;
}>): SerializedAttributionCollection;
Parameters
Parameter | Type | Description |
---|---|---|
segments | Iterable<{ attribution?: IAttributionCollection<AttributionKey>; cachedLength: number; }> |
Returns
Return type: SerializedAttributionCollection