@ngxs/store 21.0.0-dev.master-ad4709c → 21.0.0-dev.master-a4d1cfd

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
@@ -506,6 +506,12 @@ declare function withNgxsNoopExecutionStrategy(): i0.EnvironmentProviders;
506
506
  */
507
507
  declare function withNgxsPendingTasks(): i0.EnvironmentProviders;
508
508
 
509
+ declare class StateContextDestroyedError extends Error {
510
+ readonly path: string;
511
+ readonly name = "StateContextDestroyedError";
512
+ constructor(path: string);
513
+ }
514
+
509
515
  /**
510
516
  * This function provides global store providers and initializes the store.
511
517
  *
@@ -718,5 +724,5 @@ declare function registerNgxsPlugin(plugin: Type<NgxsPlugin> | NgxsPluginFn): vo
718
724
 
719
725
  declare function ɵprovideNgxsInternalStateTokens(): i0.EnvironmentProviders;
720
726
 
721
- export { Action, ActionDirector, ActionStatus, Actions, AsyncReturnType, NgxsConfig, NgxsDevelopmentModule, NgxsModule, NgxsSimpleChange, NgxsUnhandledActionsLogger, NgxsUnhandledErrorHandler, Select, Selector, SelectorOptions, State, Store, createDispatchMap, createModelSelector, createPickSelector, createPropertySelectors, createSelectMap, createSelector, dispatch, lazyProvider, ofAction, ofActionCanceled, ofActionCompleted, ofActionDispatched, ofActionErrored, ofActionSuccessful, provideStates, provideStore, registerNgxsPlugin, select, withNgxsDevelopmentOptions, withNgxsNoopExecutionStrategy, withNgxsPendingTasks, withNgxsPlugin, withNgxsPreboot, NgxsFeatureModule as ɵNgxsFeatureModule, NgxsRootModule as ɵNgxsRootModule, ɵprovideNgxsInternalStateTokens };
727
+ export { Action, ActionDirector, ActionStatus, Actions, AsyncReturnType, NgxsConfig, NgxsDevelopmentModule, NgxsModule, NgxsSimpleChange, NgxsUnhandledActionsLogger, NgxsUnhandledErrorHandler, Select, Selector, SelectorOptions, State, StateContextDestroyedError, Store, createDispatchMap, createModelSelector, createPickSelector, createPropertySelectors, createSelectMap, createSelector, dispatch, lazyProvider, ofAction, ofActionCanceled, ofActionCompleted, ofActionDispatched, ofActionErrored, ofActionSuccessful, provideStates, provideStore, registerNgxsPlugin, select, withNgxsDevelopmentOptions, withNgxsNoopExecutionStrategy, withNgxsPendingTasks, withNgxsPlugin, withNgxsPreboot, NgxsFeatureModule as ɵNgxsFeatureModule, NgxsRootModule as ɵNgxsRootModule, ɵprovideNgxsInternalStateTokens };
722
728
  export type { ActionCompletion, ActionContext, ActionDef, ActionMap, ActionType, NgxsAfterBootstrap, NgxsDevelopmentOptions, NgxsModuleOptions, NgxsOnChanges, NgxsOnInit, NgxsUnhandledErrorContext, PropertySelectors, SelectorMap, StateContext, TypedSelector, ɵSelectorDef, ɵSelectorFunc, ɵSelectorReturnType, ɵStateSelector };
@@ -29,7 +29,7 @@ type _NoInfer<T> = T extends infer S ? S : never;
29
29
  * ```
30
30
  *
31
31
  */
32
- type NoInfer$1<T> = T extends (infer O)[] ? _NoInfer<O>[] : _NoInfer<T>;
32
+ type NoInfer<T> = T extends (infer O)[] ? _NoInfer<O>[] : _NoInfer<T>;
33
33
  /**
34
34
  * IMPORTANT NOTE: This should not be used externally to the library, rather
35
35
  * the exported type `ExistingState<T>` should be used instead.
@@ -57,9 +57,9 @@ type StateOperator<T> = (existing: ExistingState<T>) => T;
57
57
  /**
58
58
  * @param items - Specific items to append to the end of an array
59
59
  */
60
- declare function append<T>(items: NoInfer$1<T[]>): StateOperator<T[]>;
60
+ declare function append<T>(items: NoInfer<T[]>): StateOperator<T[]>;
61
61
 
62
- declare function compose<T>(...operators: NoInfer$1<StateOperator<T>[]>): StateOperator<T>;
62
+ declare function compose<T>(...operators: NoInfer<StateOperator<T>[]>): StateOperator<T>;
63
63
 
64
64
  type Predicate<T = any> = (value: T | Readonly<T>) => boolean;
65
65
  declare const isStateOperator: <T>(value: T | StateOperator<T>) => value is StateOperator<T>;
@@ -72,19 +72,19 @@ declare const isPredicate: <T>(value: Predicate<T> | boolean | number) => value
72
72
  * @param trueOperatorOrValue - Any value or a state operator
73
73
  * @param elseOperatorOrValue - Any value or a state operator
74
74
  */
75
- declare function iif<T>(condition: NoInfer$1<Predicate<T>> | boolean, trueOperatorOrValue: NoInfer$1<StateOperator<T> | T>, elseOperatorOrValue?: NoInfer$1<StateOperator<T> | T>): StateOperator<T>;
75
+ declare function iif<T>(condition: NoInfer<Predicate<T>> | boolean, trueOperatorOrValue: NoInfer<StateOperator<T> | T>, elseOperatorOrValue?: NoInfer<StateOperator<T> | T>): StateOperator<T>;
76
76
 
77
77
  /**
78
78
  * @param value - Value to insert
79
79
  * @param [beforePosition] - Specified index to insert value before, optional
80
80
  */
81
- declare function insertItem<T>(value: NoInfer$1<T>, beforePosition?: number): StateOperator<T[]>;
81
+ declare function insertItem<T>(value: NoInfer<T>, beforePosition?: number): StateOperator<T[]>;
82
82
 
83
83
  type NotUndefined<T> = T extends undefined ? never : T;
84
84
  type ɵPatchSpec<T> = {
85
85
  [P in keyof T]?: T[P] | StateOperator<NotUndefined<T[P]>>;
86
86
  };
87
- declare function patch<T extends Record<string, any>>(patchObject: NoInfer$1<ɵPatchSpec<T>>): StateOperator<T>;
87
+ declare function patch<T extends Record<string, any>>(patchObject: NoInfer<ɵPatchSpec<T>>): StateOperator<T>;
88
88
 
89
89
  declare function safePatch<T extends object>(patchSpec: NoInfer<ɵPatchSpec<T>>): StateOperator<T>;
90
90
 
@@ -94,12 +94,12 @@ declare function safePatch<T extends object>(patchSpec: NoInfer<ɵPatchSpec<T>>)
94
94
  * @param operatorOrValue - New value under the `selector` index or a
95
95
  * function that can be applied to an existing value
96
96
  */
97
- declare function updateItem<T>(selector: number | NoInfer$1<Predicate<T>>, operatorOrValue: NoInfer$1<T> | NoInfer$1<StateOperator<T>>): StateOperator<T[]>;
97
+ declare function updateItem<T>(selector: number | NoInfer<Predicate<T>>, operatorOrValue: NoInfer<T> | NoInfer<StateOperator<T>>): StateOperator<T[]>;
98
98
 
99
99
  /**
100
100
  * @param selector - index or predicate to remove an item from an array by
101
101
  */
102
- declare function removeItem<T>(selector: number | NoInfer$1<Predicate<T>>): StateOperator<T[]>;
102
+ declare function removeItem<T>(selector: number | NoInfer<Predicate<T>>): StateOperator<T[]>;
103
103
 
104
104
  export { append, compose, iif, insertItem, isPredicate, isStateOperator, patch, removeItem, safePatch, updateItem };
105
- export type { ExistingState, NoInfer$1 as NoInfer, Predicate, StateOperator, ɵPatchSpec };
105
+ export type { ExistingState, NoInfer, Predicate, StateOperator, ɵPatchSpec };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ngxs/store",
3
- "version": "21.0.0-dev.master-ad4709c",
3
+ "version": "21.0.0-dev.master-a4d1cfd",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {