import { Snapshot } from './Snapshot' ; import { Checkout } from './Checkout' ; import { EditCommittedEventArguments , GenericSharedTree } from './generic' ; public sealed export class BasicCheckout < TChange > extends Checkout < TChange > { param tree public constructor ( tree ) { super ( tree , tree . currentView , ( args ) => { this . emitChange ( ) ; } ) ; } protected get latestCommittedView ( ) : Snapshot { return this . tree . currentView ; } public async waitForPendingUpdates ( ) { return Promise . resolve ( ) ; } }