Skip to content

Commit a8d46d6

Browse files
committed
fix: make scheme optional
1 parent b1f2216 commit a8d46d6

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
@@ -457,21 +457,21 @@ export interface IOSApi {
457457
* @param {string} path Path of the file to be open.
458458
* @param {string} scheme URI scheme that needs to support, optional
459459
*/
460-
presentOptionsMenu(path: string, scheme: string): void;
460+
presentOptionsMenu(path: string, scheme?: string): void;
461461

462462
/**
463463
* Displays a menu for opening the document using [UIDocumentInteractionController](https://developer.apple.com/reference/uikit/uidocumentinteractioncontroller).[presentOpenInMenu](https://developer.apple.com/documentation/uikit/uidocumentinteractioncontroller/1616807-presentopeninmenu)
464464
* @param {string} path Path of the file to be open.
465465
* @param {string} scheme URI scheme that needs to support, optional
466466
*/
467-
presentOpenInMenu(path: string, scheme: string): void;
467+
presentOpenInMenu(path: string, scheme?: string): void;
468468

469469
/**
470470
* Displays a full-screen preview of the target document using [UIDocumentInteractionController](https://developer.apple.com/reference/uikit/uidocumentinteractioncontroller).[presentPreview](https://developer.apple.com/documentation/uikit/uidocumentinteractioncontroller/1616828-presentpreview)
471471
* @param {string} path Path of the file to be open.
472472
* @param {string} scheme URI scheme that needs to support, optional
473473
*/
474-
presentPreview(path: string, scheme: string): void;
474+
presentPreview(path: string, scheme?: string): void;
475475
}
476476

477477
export interface AndroidDownloadOption {

0 commit comments

Comments
 (0)