mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 15:27:05 +00:00
Merge pull request #28052 from morishin/fix-react-native-async-storage-get-item-return-type
Fix return type React Native AsyncStorage.getItem
This commit is contained in:
Vendored
+1
-1
@@ -6847,7 +6847,7 @@ export interface AsyncStorageStatic {
|
||||
/**
|
||||
* Fetches key and passes the result to callback, along with an Error if there is any.
|
||||
*/
|
||||
getItem(key: string, callback?: (error?: Error, result?: string) => void): Promise<string>;
|
||||
getItem(key: string, callback?: (error?: Error, result?: string) => void): Promise<string | null>;
|
||||
|
||||
/**
|
||||
* Sets value for key and calls callback on completion, along with an Error if there is any
|
||||
|
||||
Reference in New Issue
Block a user