@astral/mobx-query 1.10.0 → 1.10.2
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/AuxiliaryQuery/AuxiliaryQuery.js +1 -0
- package/DataStorage/DataStorage.d.ts +1 -0
- package/DataStorage/DataStorage.js +3 -0
- package/InfiniteQuery/InfiniteQuery.js +3 -0
- package/Query/Query.js +3 -0
- package/README.md +3 -3
- package/node/AuxiliaryQuery/AuxiliaryQuery.js +1 -0
- package/node/DataStorage/DataStorage.d.ts +1 -0
- package/node/DataStorage/DataStorage.js +3 -0
- package/node/InfiniteQuery/InfiniteQuery.js +3 -0
- package/node/Query/Query.js +3 -0
- package/package.json +1 -1
package/Query/Query.js
CHANGED
package/README.md
CHANGED
|
@@ -653,9 +653,9 @@ docQuery.forceUpdate({ name: 'test' });
|
|
|
653
653
|
Для мокинга QuerySet и InfiniteQuerySet необходимо использовать mock следующего вида:
|
|
654
654
|
```ts
|
|
655
655
|
type Fetcher = {
|
|
656
|
-
queries: QuerySet<any[], any
|
|
657
|
-
infiniteQueries: InfiniteQuerySet<any[], any
|
|
658
|
-
mutations: MutationSet<any[], any
|
|
656
|
+
queries: Record<string, QuerySet<any[], any>>;
|
|
657
|
+
infiniteQueries: Record<InfiniteQuerySet<any[], any>>;
|
|
658
|
+
mutations: Record<MutationSet<any[], any>>;
|
|
659
659
|
};
|
|
660
660
|
|
|
661
661
|
const mockFetcher = <TFetcher extends Fetcher>(config: DeepPartial<TFetcher>) => config as TFetcher;
|
package/node/Query/Query.js
CHANGED