Skip to main content
Version: v2

ISnapshotable Interface

Interface for object that can be snapshoted

TODO: move this to be use in other place TODO: currently input and output is not symmetrical, can they become symmetrical?

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

To use, import via @fluidframework/ordered-collection/legacy.

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

Signature​

export interface ISnapshotable<T>

Type Parameters​

ParameterDescription
T

Methods​

MethodAlertsReturn TypeDescription
asArray()BetaT[]
loadFrom(values)Betavoid

Method Details​

asArray​

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​

asArray(): T[];

Returns​

Return type: T[]

loadFrom​

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​

loadFrom(values: T[]): void;

Parameters​

ParameterTypeDescription
valuesT[]