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;