tooot/.yarn/patches/@types-react-native-share-m...

35 lines
1.1 KiB
Diff
Raw Normal View History

2022-12-23 17:47:01 +01:00
diff --git a/index.d.ts b/index.d.ts
index f52822c8bed928f387baf90fdb7342c7416a775a..6d9d480d18342832c4b07af2b10f4a63ff538e7b 100755
--- a/index.d.ts
+++ b/index.d.ts
2022-05-05 23:03:00 +02:00
@@ -5,11 +5,9 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
2022-05-02 22:31:22 +02:00
// Minimum TypeScript Version: 3.7
2022-05-05 23:03:00 +02:00
-export interface ShareData {
2022-05-02 22:31:22 +02:00
- mimeType: string;
- data: string | string[];
- extraData?: object | undefined;
2022-05-05 23:03:00 +02:00
-}
+export type ShareData = {
2022-05-03 23:06:53 +02:00
+ data: {mimeType: string; data: string}[];
2022-05-05 23:03:00 +02:00
+} | {mimeType: string; data: string | string[]}
2022-05-02 22:31:22 +02:00
export type ShareCallback = (share?: ShareData) => void;
2022-05-05 23:03:00 +02:00
2022-12-23 17:47:01 +01:00
@@ -25,10 +23,10 @@ interface ShareMenu {
}
interface ShareMenuReactView {
- dismissExtension(error?: string): void;
- openApp(): void;
- continueInApp(extraData?: object): void;
2022-05-02 22:31:22 +02:00
- data(): Promise<{mimeType: string, data: string}>;
2022-12-23 17:47:01 +01:00
+ dismissExtension(error?: string): void
+ openApp(): void
+ continueInApp(extraData?: object): void
+ data(): Promise<{ data: { mimeType: string; data: string }[] }>
2022-05-02 22:31:22 +02:00
}
export const ShareMenuReactView: ShareMenuReactView;