import { Subject , Observable } from 'rxjs' ; import { OnDestroy } from '@angular/core' ; import { Constructor } from './constructor' ; export interface ThyLoadingDone { loadingDone : boolean ; } export function mixinLoadingDone < T extends Constructor < { } > > ( base ) { return class Mixin extends base { loadingDone = false ; setLoadingDone ( value ) { this . loadingDone = value ; } constructor ( ... args ) { super ( ... args ) ; } } ; }