pinia-plugin-subscription 0.0.0-beta.3 → 0.0.0-beta.4
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/dist/types/index.d.ts +3 -2
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PiniaPlugin, PiniaPluginContext, Store as PiniaStore, StateTree } from "pinia"
|
|
2
2
|
import type { PluginSubscriber as PluginSubscriberInterface, PluginSubscription, PluginSubscriptions, StoreOnActionSubscription, StoreMutationSubscription } from "./plugin"
|
|
3
|
-
import { DefineAugmentedStore,
|
|
3
|
+
import { DefineAugmentedStore, StatePropertyValue, StoreOptions, StoreOptionsPropertyValue } from "./store"
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
declare module 'pinia-plugin-subscription' {
|
|
@@ -12,6 +12,7 @@ declare module 'pinia-plugin-subscription' {
|
|
|
12
12
|
|
|
13
13
|
export abstract class PluginSubscriber<Instance extends Store> implements PluginSubscriberInterface {
|
|
14
14
|
public name: string
|
|
15
|
+
protected pluginCreated?: (store: PiniaStore) => void
|
|
15
16
|
public resetStoreCallback: ((store?: PiniaStore) => void) | undefined
|
|
16
17
|
public storeOnActionSubscription: StoreOnActionSubscription | undefined
|
|
17
18
|
public storeMutationSubscription: StoreMutationSubscription | undefined
|
|
@@ -40,7 +41,7 @@ declare module 'pinia-plugin-subscription' {
|
|
|
40
41
|
|
|
41
42
|
static customizeStore<Instance extends Store>(
|
|
42
43
|
store: PiniaStore,
|
|
43
|
-
options:
|
|
44
|
+
options: AnyObject,
|
|
44
45
|
debug?: boolean
|
|
45
46
|
): Instance | undefined
|
|
46
47
|
|