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.
1 parent de9aa4b commit 9a84a6eCopy full SHA for 9a84a6e
docs/custom-drivers.md
@@ -4,10 +4,10 @@ This wrapper has been written with the goal of **being storage-agnostic**. This
4
5
Your custom driver must implement these 3 methods that are promises.
6
7
-* `getItem(key: string, callback?: (error?: Error, result?: string) => void)`
8
-* `setItem(key: string, value: string, callback?: (error?: Error) => void);`
9
-* `removeItem(key: string, callback?: (error?: Error) => void);`
10
-* `multiRemove(keys: string[], callback?: (errors?: Error[]) => void);`
+* `getItem(key: string): Promise<any>;`
+* `setItem(key: string, value: string): Promise<void>;`
+* `removeItem(key: string): Promise<void>;`
+* `multiRemove(keys: string[]): Promise<void>;`
11
12
## SQLite Driver
13
0 commit comments