Skip to main content
Version: v1

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?

Signature

export interface ISnapshotable<T>

Type Parameters

ParameterDescription
T

Methods

MethodReturn TypeDescription
asArray()T[]
loadFrom(values)void

Method Details

asArray

Signature

asArray(): T[];

Returns

Return type: T[]

loadFrom

Signature

loadFrom(values: T[]): void;

Parameters

ParameterTypeDescription
valuesT[]