diff --git a/types/index.d.ts b/types/index.d.ts index e2d3820b..d7b3f26d 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -60,10 +60,10 @@ interface AsyncStorage { } type AsyncStorageHook = { - getItem(callback?: (error?: Error, result?: string) => void): Promise; - setItem(value: string, callback?: (error?: Error) => void): Promise; - mergeItem(value: string, callback?: (error?: Error) => void): Promise; - removeItem(callback?: (error?: Error) => void): Promise; + getItem: (callback?: (error?: Error, result?: string) => void) => Promise; + setItem: (value: string, callback?: (error?: Error) => void) => Promise; + mergeItem: (value: string, callback?: (error?: Error) => void) => Promise; + removeItem: (callback?: (error?: Error) => void) => Promise; } declare module '@react-native-async-storage/async-storage' {