mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-27 17:31:12 +00:00
窗口错误码整改
Change-Id: I361187c98ee3c0a55a9ee0245f9e710ec7534f75 Signed-off-by: zhengjiangliang <zhengjiangliang@huawei.com>
This commit is contained in:
parent
92727ee701
commit
f80eb22f20
6
api/@ohos.window.d.ts
vendored
6
api/@ohos.window.d.ts
vendored
@ -615,7 +615,7 @@ declare namespace window {
|
||||
/**
|
||||
* Indicates Parent window id
|
||||
*/
|
||||
parentId?: string
|
||||
parentId?: number
|
||||
}
|
||||
|
||||
/**
|
||||
@ -627,7 +627,7 @@ declare namespace window {
|
||||
* @throws {BusinessError} 1300001 - If window has created
|
||||
* @throws {BusinessError} 1300006 - If window context is abnormally
|
||||
*/
|
||||
function createWindow({ name, windowType, ctx, displayId, parentId = "" }: Configuration, callback: AsyncCallback<Window>): void;
|
||||
function createWindow(config: Configuration, callback: AsyncCallback<Window>): void;
|
||||
|
||||
/**
|
||||
* Create a window with a specific configuration
|
||||
@ -638,7 +638,7 @@ declare namespace window {
|
||||
* @throws {BusinessError} 1300001 - If window has created
|
||||
* @throws {BusinessError} 1300006 - If window context is abnormally
|
||||
*/
|
||||
function createWindow({ name, windowType, ctx, displayId, parentId = "" }: Configuration): Promise<Window>;
|
||||
function createWindow(config: Configuration): Promise<Window>;
|
||||
|
||||
/**
|
||||
* Create a sub window with a specific id and type, only support 7.
|
||||
|
Loading…
Reference in New Issue
Block a user