@ngxs/store 3.8.2-dev.master-8085e85 → 3.8.2-dev.master-f7a49be

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ngxs/store",
3
- "version": "3.8.2-dev.master-8085e85",
3
+ "version": "3.8.2-dev.master-f7a49be",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {
@@ -26,7 +26,7 @@ export declare class InternalDispatcher {
26
26
  /**
27
27
  * Dispatches event(s).
28
28
  */
29
- dispatch(actionOrActions: any | any[]): Observable<any>;
29
+ dispatch(actionOrActions: any | any[]): Observable<void>;
30
30
  private dispatchByEvents;
31
31
  private dispatchSingle;
32
32
  private getActionResultStream;
@@ -14,7 +14,7 @@ import * as i0 from "@angular/core";
14
14
  * 4) `toPromise()` without `catch` -> do `handleError()`
15
15
  * 5) `toPromise()` with `catch` -> don't `handleError()`
16
16
  */
17
- export declare function ngxsErrorHandler<T>(internalErrorReporter: InternalErrorReporter, ngxsExecutionStrategy: NgxsExecutionStrategy): (source: Observable<T>) => Observable<unknown>;
17
+ export declare function ngxsErrorHandler(internalErrorReporter: InternalErrorReporter, ngxsExecutionStrategy: NgxsExecutionStrategy): (source: Observable<void>) => Observable<void>;
18
18
  export declare class InternalErrorReporter {
19
19
  private _injector;
20
20
  /** Will be set lazily to be backward compatible. */
@@ -1,3 +1,4 @@
1
+ import { InjectionToken } from '@angular/core';
1
2
  import { Observable } from 'rxjs';
2
3
  import { ɵPlainObjectOf, ɵStateClassInternal, ɵActionHandlerMetaData } from '@ngxs/store/internals';
3
4
  import { NgxsConfig } from '../symbols';
@@ -26,8 +27,11 @@ export interface StatesAndDefaults {
26
27
  * getValue({ foo: bar: [] }, 'foo.bar') //=> []
27
28
  *
28
29
  * @ignore
30
+ *
31
+ * Marked for removal. It's only used within `createSelectorFn`.
29
32
  */
30
33
  export declare function propGetter(paths: string[], config: NgxsConfig): (x: any) => any;
34
+ export declare const ɵPROP_GETTER: InjectionToken<(paths: string[]) => (x: any) => any>;
31
35
  /**
32
36
  * Given an array of states, it will return a object graph. Example:
33
37
  * const states = [
@@ -29,6 +29,7 @@ export declare class StateFactory implements OnDestroy {
29
29
  private _stateContextFactory;
30
30
  private _initialState;
31
31
  private _actionsSubscription;
32
+ private _propGetter;
32
33
  constructor(_injector: Injector, _config: NgxsConfig, _parentFactory: StateFactory, _actions: InternalActions, _actionResults: InternalDispatchedActionResults, _stateContextFactory: StateContextFactory, _initialState: any);
33
34
  private _states;
34
35
  get states(): MappedStore[];
package/src/store.d.ts CHANGED
@@ -24,7 +24,7 @@ export declare class Store {
24
24
  /**
25
25
  * Dispatches event(s).
26
26
  */
27
- dispatch(actionOrActions: any | any[]): Observable<any>;
27
+ dispatch(actionOrActions: any | any[]): Observable<void>;
28
28
  /**
29
29
  * Selects a slice of data from the store.
30
30
  */