angular-three 1.6.8 → 1.6.10

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.
@@ -1,4 +1,4 @@
1
- import { ChangeDetectorRef } from '@angular/core';
1
+ import { ChangeDetectorRef, OnDestroy } from '@angular/core';
2
2
  import { RxState } from '@rx-angular/state';
3
3
  import { MonoTypeOperatorFunction, Observable } from 'rxjs';
4
4
  import * as i0 from "@angular/core";
@@ -32,11 +32,16 @@ type EffectFn<TValue> = (value: TValue) => void | undefined | ((cleanUpParams: {
32
32
  * ```
33
33
  */
34
34
  export declare function tapEffect<TValue>(effectFn: EffectFn<TValue>): MonoTypeOperatorFunction<TValue>;
35
- export declare class NgtRxStore<TState extends object = any, TRxState extends object = TState & Record<string, any>> extends RxState<TRxState> {
35
+ export declare class NgtRxStore<TState extends object = any, TRxState extends object = TState & Record<string, any>> extends RxState<TRxState> implements OnDestroy {
36
36
  constructor();
37
37
  protected initialize(): void;
38
38
  effect<S>(obs: Observable<S>, sideEffectFn: EffectFn<S>): void;
39
39
  triggerChangeDetection(cdr: ChangeDetectorRef, keys?: Array<keyof TRxState>): void;
40
+ private cache;
41
+ key$<K extends keyof TRxState>(key: K): Observable<TRxState[K]>;
42
+ key$<K1 extends keyof TRxState, K2 extends keyof TRxState[K1]>(key1: K1, key2: K2): Observable<TRxState[K1][K2]>;
43
+ key$<K1 extends keyof TRxState, K2 extends keyof TRxState[K1], K3 extends keyof TRxState[K1][K2]>(key1: K1, key2: K2, key3: K3): Observable<TRxState[K1][K2][K3]>;
44
+ ngOnDestroy(): void;
40
45
  static ɵfac: i0.ɵɵFactoryDeclaration<NgtRxStore<any, any>, never>;
41
46
  static ɵprov: i0.ɵɵInjectableDeclaration<NgtRxStore<any, any>>;
42
47
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "angular-three",
3
- "version": "1.6.8",
3
+ "version": "1.6.10",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -6,5 +6,5 @@
6
6
  },
7
7
  "main": "./src/index.js",
8
8
  "types": "./src/index.d.ts",
9
- "version": "1.6.8"
9
+ "version": "1.6.10"
10
10
  }