import { assert } from "@fluidframework/common-utils" ; export class SnapshotableArray < T > extends Array { protected data : T [ ] = [ ] ; public asArray ( ) { return this . data ; } public async loadFrom ( from ) { assert ( this . data . length === 0 , 0x06b ) ; this . data = from ; } public size ( ) { return this . data . length ; } }