/**
 * An interface for objects that require manual cleanup.
 */ export interface Destroyable { /**
     * Dispose of this instance. The instance cannot be used after this method has been called.
     */ destroy ( ) : Promise < void > ; } param x returns export function isDestroyable ( x ) { return x && 'destroy' in x ; } export default Destroyable ;