We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
AsyncStorage
1 parent a20c553 commit 128c5e2Copy full SHA for 128c5e2
1 file changed
src/createAsyncStoragePersister/index.ts
@@ -1,13 +1,13 @@
1
import { PersistedClient, Persister } from '../persistQueryClient'
2
import { asyncThrottle } from './asyncThrottle'
3
4
-interface AsyncStorage {
+export interface AsyncStorage {
5
getItem: (key: string) => Promise<string | null>
6
setItem: (key: string, value: string) => Promise<void>
7
removeItem: (key: string) => Promise<void>
8
}
9
10
-interface CreateAsyncStoragePersisterOptions {
+export interface CreateAsyncStoragePersistorOptions {
11
/** The storage client used for setting an retrieving items from cache */
12
storage: AsyncStorage
13
/** The key to use when storing the cache */
0 commit comments