allow $openUri to accept a URI and string, adopt consumer but keep the API as is

This commit is contained in:
Johannes Rieken
2019-11-15 10:28:03 +01:00
parent f651ccac7e
commit 544b0abf5b
4 changed files with 29 additions and 21 deletions

View File

@@ -759,7 +759,7 @@ export interface IOpenUriOptions {
export interface MainThreadWindowShape extends IDisposable {
$getWindowVisibility(): Promise<boolean>;
$openUri(uri: UriComponents, options: IOpenUriOptions): Promise<boolean>;
$openUri(uri: UriComponents | string, options: IOpenUriOptions): Promise<boolean>;
$asExternalUri(uri: UriComponents, options: IOpenUriOptions): Promise<UriComponents>;
}