From 0c00db0c15aa39cc97fe9052bf0256964efdcc8e Mon Sep 17 00:00:00 2001 From: pera Date: Tue, 6 Aug 2019 20:07:53 -0300 Subject: [PATCH] Update index.d.ts (#37301) Export interfaces --- types/react-native-share/index.d.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/types/react-native-share/index.d.ts b/types/react-native-share/index.d.ts index abee419ae8..0d615ced4b 100644 --- a/types/react-native-share/index.d.ts +++ b/types/react-native-share/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for react-native-share 1.1 // Project: https://github.com/react-native-community/react-native-share#readme // Definitions by: Mark Nelissen +// pera // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.1 @@ -13,16 +14,16 @@ declare namespace Share { export default Share; -interface OpenReturn { +export interface OpenReturn { app?: string; dismissedAction?: boolean; } -interface ShareSingleReturn { +export interface ShareSingleReturn { message: string; } -interface Options { +export interface Options { url?: string; urls?: string[]; type?: string; @@ -33,7 +34,7 @@ interface Options { failOnCancel?: boolean; showAppsToView?: boolean; } -interface MultipleOptions { +export interface MultipleOptions { url?: string; urls: string[]; type?: string;