@badisi/ngx-safe-subscribe 4.0.25 → 4.0.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -1,5 +1,11 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@badisi/ngx-safe-subscribe" />
5
- export * from './ngx-safe-subscribe';
1
+ import { Observable, Subscription } from 'rxjs';
2
+
3
+ declare module 'rxjs/internal/Observable' {
4
+ interface Observable<T> {
5
+ safeSubscribe: typeof safeSubscribe;
6
+ }
7
+ }
8
+ declare function SafeSubscribe(destructorName?: string): ClassDecorator;
9
+ declare function safeSubscribe<T>(this: Observable<T>, target: any, ...args: any): Subscription;
10
+
11
+ export { SafeSubscribe, safeSubscribe };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@badisi/ngx-safe-subscribe",
3
- "version": "4.0.25",
3
+ "version": "4.0.27",
4
4
  "description": "Easy way to automatically unsubscribe from RxJS observables in Angular components",
5
5
  "homepage": "https://github.com/badisi/ngx-safe-subscribe",
6
6
  "license": "MIT",
@@ -1,8 +0,0 @@
1
- import { Observable, Subscription } from 'rxjs';
2
- declare module 'rxjs/internal/Observable' {
3
- interface Observable<T> {
4
- safeSubscribe: typeof safeSubscribe;
5
- }
6
- }
7
- export declare function SafeSubscribe(destructorName?: string): ClassDecorator;
8
- export declare function safeSubscribe<T>(this: Observable<T>, target: any, ...args: any): Subscription;