Skip to content

Commit 63f7158

Browse files
committed
fix(types): fix localforage interface
1 parent 5030ed8 commit 63f7158

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/storageWrappers/LocalForageWrapper.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ export class LocalForageWrapper
2929
interface LocalForageInterface {
3030
// Actual type definition: https://github.com/localForage/localForage/blob/master/typings/localforage.d.ts#L17
3131
getItem(key: string): Promise<string | null>;
32-
setItem(key: string, value: string | object | null): Promise<void>;
32+
setItem(
33+
key: string,
34+
value: string | object | null,
35+
): Promise<string | object | null>;
3336
removeItem(key: string): Promise<void>;
3437
}

0 commit comments

Comments
 (0)