Skip to content

Commit 90f3592

Browse files
authored
Merge pull request #269 from bloomapi/fix-signature
Correct the return type of openDocument
2 parents bd20981 + 1365e6f commit 90f3592

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -525,17 +525,17 @@ export interface IOSApi {
525525
/**
526526
* Open a file in {@link https://developer.apple.com/reference/uikit/uidocumentinteractioncontroller UIDocumentInteractionController},
527527
* this is the default document viewer of iOS, supports several kinds of files. On Android, there's an similar method {@link android.actionViewIntent}.
528-
* @param path This is a required field, the path to the document. The path should NOT contains any scheme prefix.
528+
* @param path This is a required field, the path to the document. The path should NOT contain any scheme prefix.
529529
* @param {string} scheme URI scheme that needs to support, optional
530530
*/
531531
previewDocument(path: string, scheme?: string): void;
532532

533533
/**
534534
* Show options menu for interact with the file.
535-
* @param path This is a required field, the path to the document. The path should NOT contains any scheme prefix.
535+
* @param path This is a required field, the path to the document. The path should NOT contain any scheme prefix.
536536
* @param {string} scheme URI scheme that needs to support, optional
537537
*/
538-
openDocument(path: string, scheme?: string): void;
538+
openDocument(path: string, scheme?: string): Promise<void>;
539539

540540
/**
541541
* Displays an options menu using [UIDocumentInteractionController](https://developer.apple.com/reference/uikit/uidocumentinteractioncontroller).[presentOptionsMenu](https://developer.apple.com/documentation/uikit/uidocumentinteractioncontroller/1616814-presentoptionsmenu)

0 commit comments

Comments
 (0)