Skip to content

Commit 9a84a6e

Browse files
committed
doc(custom-drivers): update functions signatures
1 parent de9aa4b commit 9a84a6e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/custom-drivers.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ This wrapper has been written with the goal of **being storage-agnostic**. This
44

55
Your custom driver must implement these 3 methods that are promises.
66

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);`
7+
* `getItem(key: string): Promise<any>;`
8+
* `setItem(key: string, value: string): Promise<void>;`
9+
* `removeItem(key: string): Promise<void>;`
10+
* `multiRemove(keys: string[]): Promise<void>;`
1111

1212
## SQLite Driver
1313

0 commit comments

Comments
 (0)