qortex-core 0.1.8 → 0.1.9

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.
Files changed (2) hide show
  1. package/index.d.ts +9 -35
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -182,41 +182,15 @@ declare class QueryManagerCore {
182
182
  }
183
183
 
184
184
  declare const _queryManager: QueryManagerCore;
185
- declare const registerFetcher: {
186
- <T = any>(key: QueryKey, opts: QueryOptions<T>): void;
187
- <F extends Fetcher>(key: QueryKey, opts: QueryOptions<InferFetcherResult<F>> & {
188
- fetcher: F;
189
- }): void;
190
- };
191
- declare const fetchQuery: {
192
- <T = any>(key: QueryKey, opts?: QueryOptions<T>): Promise<T>;
193
- <F extends Fetcher>(key: QueryKey, opts: QueryOptions<InferFetcherResult<F>> & {
194
- fetcher: F;
195
- }): Promise<InferFetcherResult<F>>;
196
- };
197
- declare const setQueryData: <T = any>(key: QueryKey, data: T) => void;
198
- declare const getQueryData: {
199
- <T = any>(key: QueryKey, opts?: QueryOptions<T>): T | undefined;
200
- <F extends Fetcher>(key: QueryKey, opts: QueryOptions<InferFetcherResult<F>> & {
201
- fetcher: F;
202
- }): InferFetcherResult<F> | undefined;
203
- };
204
- declare const getQueryState: {
205
- <T = unknown>(key: QueryKey, opts?: QueryOptions<T>): QueryState<T>;
206
- <F extends Fetcher>(key: QueryKey, opts: QueryOptions<InferFetcherResult<F>> & {
207
- fetcher: F;
208
- }): QueryState<InferFetcherResult<F>>;
209
- };
210
- declare const invalidateQuery: (key: QueryKey) => void;
211
- declare const subscribeQuery: {
212
- (key: QueryKey, cb: (state: QueryState<any>) => void): () => void;
213
- <F extends Fetcher>(key: QueryKey, cb: (state: QueryState<InferFetcherResult<F>>) => void, opts: QueryOptions<InferFetcherResult<F>> & {
214
- fetcher: F;
215
- }): () => void;
216
- <T = any>(key: QueryKey, cb: (state: QueryState<T>) => void, opts?: QueryOptions<T>): () => void;
217
- };
218
- declare const setDefaultConfig: ({ throttleTime, ...config }: DefaultConfig) => void;
219
- declare const dangerClearCache: () => void;
185
+ declare const registerFetcher: QueryManagerCore["registerFetcher"];
186
+ declare const fetchQuery: QueryManagerCore["fetchQuery"];
187
+ declare const setQueryData: QueryManagerCore["setQueryData"];
188
+ declare const getQueryData: QueryManagerCore["getQueryData"];
189
+ declare const getQueryState: QueryManagerCore["getQueryState"];
190
+ declare const invalidateQuery: QueryManagerCore["invalidateQuery"];
191
+ declare const subscribeQuery: QueryManagerCore["subscribeQuery"];
192
+ declare const setDefaultConfig: QueryManagerCore["setDefaultConfig"];
193
+ declare const dangerClearCache: QueryManagerCore["dangerClearCache"];
220
194
 
221
195
  /**
222
196
  * Normalizes query keys to a consistent string format for internal storage
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qortex-core",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Framework-agnostic query cache & fetch registry (MFE friendly).",
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",