UNPKG

ngx-until-on-destroy

Version:

Allow you unsubscribe subscriptions when component was destroying. Can be used with Angular 5-10

7 lines (6 loc) 211 B
import { Subscription } from 'rxjs'; import { subSymbol } from './ngx-symbols'; import { Type } from '@angular/core'; export interface TypeWithSubscription<T> extends Type<T> { [subSymbol]?: Subscription; }