public export interface AdapterState < TState > { /** Subscribes the handler to stateChanged events. */ onStateChange ( handler ) : void ; /** Unsubscribes the handler to stateChanged events. */ offStateChange ( handler ) : void ; /** Get the current State */ getState ( ) : TState ; } public export interface Disposable { /** Dispose of the Composite */ dispose ( ) : void ; } public export interface AdapterError extends Error { /**
     * The operation that failed.
     */ target : string ; /**
     * Error thrown by the failed operation.
     */ innerError : Error ; /**
     * Timestamp added to the error in the adapter implementation.
     */ timestamp : Date ; } public export type AdapterErrors = { [ target ] : AdapterError ; } ;