diff --git a/typings/localforage.d.ts b/typings/localforage.d.ts index 34e0db2a..7fb8f58a 100644 --- a/typings/localforage.d.ts +++ b/typings/localforage.d.ts @@ -15,7 +15,7 @@ interface LocalForageOptions extends LocalForageDbInstanceOptions { } interface LocalForageDbMethodsCore { - getItem(key: string, callback?: (err: any, value: T) => void): Promise; + getItem(key: string, callback?: (err: any, value: T | null) => void): Promise; setItem(key: string, value: T, callback?: (err: any, value: T) => void): Promise;