From 55b27e270940c86eb1c7229124769d1013ced707 Mon Sep 17 00:00:00 2001 From: shintaro-morikawa Date: Sat, 11 Aug 2018 20:57:24 +0900 Subject: [PATCH] Fix return type React Native AsyncStorage.getItem --- types/react-native/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index 40a9375126..26c04ced1e 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -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; + getItem(key: string, callback?: (error?: Error, result?: string) => void): Promise; /** * Sets value for key and calls callback on completion, along with an Error if there is any