From cb9791a338d839104214f39672b3eac950191f55 Mon Sep 17 00:00:00 2001 From: Johhan Santana Date: Fri, 21 Sep 2018 11:39:26 -0400 Subject: [PATCH 1/2] add parse/react-native definitions --- types/parse/index.d.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/types/parse/index.d.ts b/types/parse/index.d.ts index 80bd1d7c46..dd66491314 100644 --- a/types/parse/index.d.ts +++ b/types/parse/index.d.ts @@ -1169,6 +1169,8 @@ declare namespace Parse { */ function initialize(applicationId: string, javaScriptKey?: string, masterKey?: string): void; + function setAsyncStorage(AsyncStorage: any): void; + } declare module "parse/node" { @@ -1179,3 +1181,8 @@ declare module "parse" { import * as parse from "parse/node"; export = parse } + +declare module "parse/react-native" { + import * as parse from "parse/node"; + export = parse +} From d7a38107d53f23ab4cb84c7fd57d456c7769bd64 Mon Sep 17 00:00:00 2001 From: Johhan Santana Date: Fri, 21 Sep 2018 11:42:03 -0400 Subject: [PATCH 2/2] add description --- types/parse/index.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/types/parse/index.d.ts b/types/parse/index.d.ts index dd66491314..63bc16d17a 100644 --- a/types/parse/index.d.ts +++ b/types/parse/index.d.ts @@ -1169,6 +1169,10 @@ declare namespace Parse { */ function initialize(applicationId: string, javaScriptKey?: string, masterKey?: string): void; + /** + * Additionally on React-Native / Expo environments, add AsyncStorage from 'react-native' package + * @param AsyncStorage AsyncStorage from 'react-native' package + */ function setAsyncStorage(AsyncStorage: any): void; }