Update index.d.ts (#37301)

Export interfaces
This commit is contained in:
pera 2019-08-06 20:07:53 -03:00 committed by Nathan Shively-Sanders
parent 6d243e4240
commit 0c00db0c15

View File

@ -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 <https://github.com/marknelissen>
// pera <https://github.com/santiagofm>
// 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;