Skip to content

Commit

Permalink
Update localforage.d.ts
Browse files Browse the repository at this point in the history
getItem can return null when the item doesn't exist
  • Loading branch information
Glandos committed Jul 24, 2020
1 parent 38c207d commit 19c67f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typings/localforage.d.ts
Expand Up @@ -15,7 +15,7 @@ interface LocalForageOptions extends LocalForageDbInstanceOptions {
}

interface LocalForageDbMethodsCore {
getItem<T>(key: string, callback?: (err: any, value: T) => void): Promise<T>;
getItem<T>(key: string, callback?: (err: any, value: T | null) => void): Promise<T | null>;

setItem<T>(key: string, value: T, callback?: (err: any, value: T) => void): Promise<T>;

Expand Down

0 comments on commit 19c67f4

Please sign in to comment.