UNPKG
@ngx-cocktail/destroyable
Version:
latest (21.0.1)
ng15 (15.0.1)
ng16 (16.0.1)
ng17 (17.0.1)
ng18 (18.0.4)
ng19 (19.0.1)
ng20 (20.0.3)
21.0.1
21.0.0
20.0.3
20.0.2
20.0.1
20.0.0
19.0.1
19.0.0
18.0.4
18.0.3
18.0.2
18.0.1
18.0.0
17.0.1
17.0.0
16.0.1
16.0.0
15.0.1
15.0.0
14.0.4
14.0.3
14.0.2
14.0.1
13.0.2
13.0.1
12.0.1
11.0.1
10.0.2
10.0.1
9.0.1
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
The library contains code for destoyable feature.
@ngx-cocktail/destroyable
/
lib
/
destroyable.interface.d.ts
7 lines
(6 loc)
•
210 B
TypeScript
View Raw
1
2
3
4
5
6
7
import
{
OnDestroy
}
from
'@angular/core'
;
import
{
Observable
}
from
'rxjs'
;
export
interface
Destroyable
extends
Partial
<
OnDestroy
> {
readonly
destroyed$
:
Observable
<
unknown
>; ngOnDestroy?():
void
; }