rxtutils 1.0.1 → 1.0.2-b
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/index.d.ts +4 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -30,9 +30,9 @@ declare class Cache<Param, Data> {
|
|
|
30
30
|
cacheOptions: ICacheOptions<Param>;
|
|
31
31
|
storage?: Storage | IndexedDBStorage;
|
|
32
32
|
constructor(cacheType?: StorageType, cacheKey?: string, cacheTime?: number, indexDBName?: string, cacheKeyEquals?: (prev: Param, next: Param) => boolean);
|
|
33
|
-
_init
|
|
34
|
-
_filterExpired
|
|
35
|
-
_saveToStorage
|
|
33
|
+
private _init;
|
|
34
|
+
private _filterExpired;
|
|
35
|
+
private _saveToStorage;
|
|
36
36
|
setCache(params: Param, data: Data, cacheOptions?: Omit<ICacheOptions<Param>, 'storageType' | 'cacheKey' | 'cacheKeyEquals'>): void;
|
|
37
37
|
getCache(params: Param): Data;
|
|
38
38
|
clear(): void;
|
|
@@ -86,4 +86,4 @@ declare function createStateStore<S>(initialState?: S): {
|
|
|
86
86
|
};
|
|
87
87
|
|
|
88
88
|
export { Cache, StorageMap, createBaseRequest, createStateStore };
|
|
89
|
-
export type { ErrorHandlerReturnType, ICache, ICacheOptions, IHookStateInitAction, IHookStateInitialSetter, IHookStateResolvable, IHookStateSetAction, IHookStateSetter, Options, RequestOptions
|
|
89
|
+
export type { ErrorHandlerReturnType, ICache, ICacheOptions, IHookStateInitAction, IHookStateInitialSetter, IHookStateResolvable, IHookStateSetAction, IHookStateSetter, Options, RequestOptions };
|