@ngxs/store 19.0.0-dev.master-f0409e4 → 19.0.0-dev.master-6b0346e
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/fesm2022/ngxs-store-internals-testing.mjs +5 -5
- package/fesm2022/ngxs-store-internals-testing.mjs.map +1 -1
- package/fesm2022/ngxs-store.mjs +28 -19
- package/fesm2022/ngxs-store.mjs.map +1 -1
- package/index.d.ts +9 -7
- package/internals/index.d.ts +2 -1
- package/internals/testing/index.d.ts +3 -2
- package/operators/index.d.ts +2 -1
- package/package.json +1 -1
- package/plugins/index.d.ts +2 -1
package/index.d.ts
CHANGED
|
@@ -275,12 +275,13 @@ declare function SelectorOptions(options: _SharedSelectorOptions): ClassDecorato
|
|
|
275
275
|
/**
|
|
276
276
|
* Status of a dispatched action
|
|
277
277
|
*/
|
|
278
|
-
declare const
|
|
279
|
-
Dispatched
|
|
280
|
-
Successful
|
|
281
|
-
Canceled
|
|
282
|
-
Errored
|
|
283
|
-
}
|
|
278
|
+
declare const ActionStatus: {
|
|
279
|
+
readonly Dispatched: "DISPATCHED";
|
|
280
|
+
readonly Successful: "SUCCESSFUL";
|
|
281
|
+
readonly Canceled: "CANCELED";
|
|
282
|
+
readonly Errored: "ERRORED";
|
|
283
|
+
};
|
|
284
|
+
type ActionStatus = (typeof ActionStatus)[keyof typeof ActionStatus];
|
|
284
285
|
interface ActionContext<T = any> {
|
|
285
286
|
status: ActionStatus;
|
|
286
287
|
action: T;
|
|
@@ -622,4 +623,5 @@ declare function lazyProvider(factory: () => Promise<EnvironmentProviders | Defa
|
|
|
622
623
|
|
|
623
624
|
declare function ɵprovideNgxsInternalStateTokens(): i0.EnvironmentProviders;
|
|
624
625
|
|
|
625
|
-
export { Action,
|
|
626
|
+
export { Action, ActionStatus, Actions, 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, select, withNgxsDevelopmentOptions, withNgxsPendingTasks, withNgxsPlugin, withNgxsPreboot, NgxsFeatureModule as ɵNgxsFeatureModule, NgxsRootModule as ɵNgxsRootModule, ɵprovideNgxsInternalStateTokens };
|
|
627
|
+
export type { ActionCompletion, ActionContext, ActionDef, ActionMap, ActionType, NgxsAfterBootstrap, NgxsDevelopmentOptions, NgxsModuleOptions, NgxsOnChanges, NgxsOnInit, NgxsUnhandledErrorContext, PropertySelectors, SelectorMap, StateContext, TypedSelector, ɵSelectorDef, ɵSelectorFunc, ɵSelectorReturnType, ɵStateSelector };
|
package/internals/index.d.ts
CHANGED
|
@@ -214,4 +214,5 @@ declare class ɵNgxsActionRegistry {
|
|
|
214
214
|
static ɵprov: i0.ɵɵInjectableDeclaration<ɵNgxsActionRegistry>;
|
|
215
215
|
}
|
|
216
216
|
|
|
217
|
-
export { StateToken,
|
|
217
|
+
export { StateToken, ɵINITIAL_STATE_TOKEN, ɵInitialState, ɵMETA_KEY, ɵMETA_OPTIONS_KEY, ɵNGXS_STATE_CONTEXT_FACTORY, ɵNGXS_STATE_FACTORY, ɵNgxsActionRegistry, ɵNgxsAppBootstrappedState, ɵOrderedBehaviorSubject, ɵOrderedSubject, ɵSELECTOR_META_KEY, ɵStateStream, ɵdefineProperty, ɵensureSelectorMetadata, ɵensureStoreMetadata, ɵgetSelectorMetadata, ɵgetStoreMetadata, ɵhasOwnProperty, ɵmemoize, ɵwrapObserverCalls };
|
|
218
|
+
export type { ɵActionHandlerMetaData, ɵActionOptions, ɵExtractTokenType, ɵMetaDataModel, ɵPlainObject, ɵPlainObjectOf, ɵRuntimeSelectorContext, ɵSelectFromRootState, ɵSelectorFactory, ɵSelectorMetaDataModel, ɵSharedSelectorOptions, ɵStateClass, ɵStateClassInternal, ɵStateToken, ɵStoreOptions, ɵTokenName };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NgxsModuleOptions, Store } from '@ngxs/store';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
3
|
import { ModuleWithProviders, EnvironmentProviders } from '@angular/core';
|
|
4
4
|
import { TestBedStatic } from '@angular/core/testing';
|
|
@@ -70,4 +70,5 @@ declare class NgxsActionCollector {
|
|
|
70
70
|
static ɵprov: i0.ɵɵInjectableDeclaration<NgxsActionCollector>;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
export {
|
|
73
|
+
export { NgxsActionCollector, NgxsTestBed, freshPlatform, loggedError, skipConsoleLogging };
|
|
74
|
+
export type { ConsoleRecord, ConsoleRecorder, NgxsTesting };
|
package/operators/index.d.ts
CHANGED
|
@@ -99,4 +99,5 @@ declare function updateItem<T>(selector: number | NoInfer<Predicate<T>>, operato
|
|
|
99
99
|
*/
|
|
100
100
|
declare function removeItem<T>(selector: number | NoInfer<Predicate<T>>): StateOperator<T[]>;
|
|
101
101
|
|
|
102
|
-
export {
|
|
102
|
+
export { append, compose, iif, insertItem, isPredicate, isStateOperator, patch, removeItem, updateItem };
|
|
103
|
+
export type { ExistingState, NoInfer, Predicate, StateOperator, ɵPatchSpec };
|
package/package.json
CHANGED
package/plugins/index.d.ts
CHANGED
|
@@ -66,4 +66,5 @@ declare const setValue: (obj: any, prop: string, val: any) => any;
|
|
|
66
66
|
*/
|
|
67
67
|
declare const getValue: (obj: any, prop: string) => any;
|
|
68
68
|
|
|
69
|
-
export { InitState, NGXS_PLUGINS,
|
|
69
|
+
export { InitState, NGXS_PLUGINS, UpdateState, actionMatcher, getActionTypeFromInstance, getValue, setValue, ɵisPluginClass };
|
|
70
|
+
export type { NgxsNextPluginFn, NgxsPlugin, NgxsPluginFn };
|