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
| Parameter | Description |
|---|---|
| T |
Methods
| Method | Return Type | Description |
|---|---|---|
| asArray() | T[] | |
| loadFrom(values) | void |
Method Details
asArray
Signature
asArray(): T[];
Returns
Return type: T[]
loadFrom
Signature
loadFrom(values: T[]): void;
Parameters
| Parameter | Type | Description |
|---|---|---|
| values | T[] |