@ngxs/store
Advanced tools
Comparing version 18.1.5-dev.master-e14b71b to 18.1.5-dev.master-ebdb596
@@ -9,3 +9,3 @@ import * as i0 from '@angular/core'; | ||
export { StateOperator } from '@ngxs/store/operators'; | ||
import { NgxsPlugin } from '@ngxs/store/plugins'; | ||
import { NgxsPlugin, NgxsPluginFn } from '@ngxs/store/plugins'; | ||
export { InitState, NGXS_PLUGINS, NgxsNextPluginFn, NgxsPlugin, NgxsPluginFn, UpdateState, actionMatcher, getActionTypeFromInstance, getValue, setValue } from '@ngxs/store/plugins'; | ||
@@ -555,3 +555,3 @@ | ||
*/ | ||
declare function withNgxsPlugin(plugin: Type<NgxsPlugin>): EnvironmentProviders; | ||
declare function withNgxsPlugin(plugin: Type<NgxsPlugin> | NgxsPluginFn): EnvironmentProviders; | ||
@@ -558,0 +558,0 @@ /** |
{ | ||
"name": "@ngxs/store", | ||
"version": "18.1.5-dev.master-e14b71b", | ||
"version": "18.1.5-dev.master-ebdb596", | ||
"license": "MIT", | ||
@@ -35,2 +35,8 @@ "sideEffects": false, | ||
}, | ||
"./plugins": { | ||
"types": "./plugins/index.d.ts", | ||
"esm2022": "./esm2022/plugins/ngxs-store-plugins.mjs", | ||
"esm": "./esm2022/plugins/ngxs-store-plugins.mjs", | ||
"default": "./fesm2022/ngxs-store-plugins.mjs" | ||
}, | ||
"./operators": { | ||
@@ -42,8 +48,2 @@ "types": "./operators/index.d.ts", | ||
}, | ||
"./plugins": { | ||
"types": "./plugins/index.d.ts", | ||
"esm2022": "./esm2022/plugins/ngxs-store-plugins.mjs", | ||
"esm": "./esm2022/plugins/ngxs-store-plugins.mjs", | ||
"default": "./fesm2022/ngxs-store-plugins.mjs" | ||
}, | ||
"./internals/testing": { | ||
@@ -50,0 +50,0 @@ "types": "./internals/testing/index.d.ts", |
import { ɵPlainObject as _PlainObject } from '@ngxs/store/internals'; | ||
import { InjectionToken } from '@angular/core'; | ||
import { InjectionToken, Type } from '@angular/core'; | ||
@@ -19,5 +19,4 @@ /** | ||
declare const NGXS_PLUGINS: InjectionToken<unknown>; | ||
type NgxsPluginFn = (state: any, mutation: any, next: NgxsNextPluginFn) => any; | ||
type NgxsNextPluginFn = (state: any, mutation: any) => any; | ||
type NgxsNextPluginFn = (state: any, action: any) => any; | ||
type NgxsPluginFn = (state: any, action: any, next: NgxsNextPluginFn) => any; | ||
/** | ||
@@ -32,2 +31,10 @@ * Plugin interface | ||
} | ||
/** | ||
* A multi-provider token used to resolve to custom NGXS plugins provided | ||
* at the root and feature levels through the `{provide}` scheme. | ||
* | ||
* @deprecated from v18.0.0, use `withNgxsPlugin` instead. | ||
*/ | ||
declare const NGXS_PLUGINS: InjectionToken<NgxsPlugin[]>; | ||
declare function ɵisPluginClass(plugin: Type<NgxsPlugin> | NgxsPluginFn): plugin is Type<NgxsPlugin>; | ||
@@ -64,2 +71,2 @@ /** | ||
export { InitState, NGXS_PLUGINS, type NgxsNextPluginFn, type NgxsPlugin, type NgxsPluginFn, UpdateState, actionMatcher, getActionTypeFromInstance, getValue, setValue }; | ||
export { InitState, NGXS_PLUGINS, type NgxsNextPluginFn, type NgxsPlugin, type NgxsPluginFn, UpdateState, actionMatcher, getActionTypeFromInstance, getValue, setValue, ɵisPluginClass }; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1011356
8244