@lomray/react-mobx-manager 2.1.2-beta.3 → 2.1.2-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/lib/context.d.ts +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/manager.d.ts +2 -2
- package/lib/on-change-listener.d.ts +1 -1
- package/lib/storages/async-storage.d.ts +1 -1
- package/lib/storages/local-storage.d.ts +1 -1
- package/lib/suspense-query.d.ts +1 -1
- package/lib/{types-a4b71460.d.ts → types-70019566.d.ts} +1 -1
- package/lib/wakeup.d.ts +1 -1
- package/lib/with-stores.d.ts +1 -1
- package/package.json +1 -1
package/lib/context.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { FC, ReactElement } from "react";
|
|
4
4
|
import Manager from "./manager.js";
|
|
5
|
-
import { TStores } from "./types-
|
|
5
|
+
import { TStores } from "./types-70019566.js";
|
|
6
6
|
interface IStoreManagerProvider {
|
|
7
7
|
storeManager: Manager;
|
|
8
8
|
shouldInit?: boolean;
|
package/lib/index.d.ts
CHANGED
package/lib/manager.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import StoreStatus from "./store-status.js";
|
|
2
|
-
import { IConstructableStore, IManagerOptions, IManagerParams, IStorage, IStoreParams, TAnyStore, TInitStore, TStoreDefinition, TStores } from "./types-
|
|
2
|
+
import { IConstructableStore, IManagerOptions, IManagerParams, IStorage, IStoreParams, TAnyStore, TInitStore, TStoreDefinition, TStores } from "./types-70019566.js";
|
|
3
3
|
/**
|
|
4
4
|
* Mobx stores manager
|
|
5
5
|
*/
|
|
@@ -11,7 +11,7 @@ declare class Manager {
|
|
|
11
11
|
/**
|
|
12
12
|
* Created stores
|
|
13
13
|
*/
|
|
14
|
-
protected readonly stores: Map<string, TInitStore<import("./types-
|
|
14
|
+
protected readonly stores: Map<string, TInitStore<import("./types-70019566.js").IStore>>;
|
|
15
15
|
/**
|
|
16
16
|
* Relations between stores
|
|
17
17
|
* @protected
|
package/lib/suspense-query.d.ts
CHANGED
|
@@ -42,7 +42,7 @@ type IConstructableStore<TSto = IStore> = (new (props: IConstructorParams) => TI
|
|
|
42
42
|
type IStoreConfig = {
|
|
43
43
|
id?: string;
|
|
44
44
|
};
|
|
45
|
-
type TStoreDefinition<TSto =
|
|
45
|
+
type TStoreDefinition<TSto extends TAnyStore = any> = IConstructableStore<TSto> | ({
|
|
46
46
|
store: IConstructableStore<TSto>;
|
|
47
47
|
} & IStoreConfig);
|
|
48
48
|
type TMapStores = Record<string, TStoreDefinition>;
|
package/lib/wakeup.d.ts
CHANGED
package/lib/with-stores.d.ts
CHANGED