Skip to content

Commit

Permalink
fix(types): fix localforage interface
Browse files Browse the repository at this point in the history
  • Loading branch information
wodCZ committed Aug 12, 2021
1 parent 5030ed8 commit 63f7158
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/storageWrappers/LocalForageWrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ export class LocalForageWrapper
interface LocalForageInterface {
// Actual type definition: https://github.com/localForage/localForage/blob/master/typings/localforage.d.ts#L17
getItem(key: string): Promise<string | null>;
setItem(key: string, value: string | object | null): Promise<void>;
setItem(
key: string,
value: string | object | null,
): Promise<string | object | null>;
removeItem(key: string): Promise<void>;
}

0 comments on commit 63f7158

Please sign in to comment.