diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 515bfbc8e555192ce3a5d89233abfe174513fed6..067cd23a5fd1e051ddb0da4a3807bf85e951e335 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -16,7 +16,7 @@ /// import { AsyncCallback, Callback } from './basic' ; -import Context from './application/BaseContext'; +import BaseContext from './application/BaseContext'; import { LocalStorage } from 'StateManagement'; import image from './@ohos.multimedia.image'; import rpc from './@ohos.rpc'; @@ -613,7 +613,7 @@ declare namespace window { * @param type Indicates window type. * @since 8 */ - function create(ctx: Context, id: string, type: WindowType): Promise; + function create(ctx: BaseContext, id: string, type: WindowType): Promise; /** * Create a system or float window with a specific id and type. @@ -622,7 +622,7 @@ declare namespace window { * @param type Indicates window type. * @since 8 */ - function create(ctx: Context, id: string, type: WindowType, callback: AsyncCallback): void; + function create(ctx: BaseContext, id: string, type: WindowType, callback: AsyncCallback): void; /** * Find the window by id. @@ -658,24 +658,24 @@ declare namespace window { * @param ctx Indicates the context on which the window depends * @since 8 */ - function getTopWindow(ctx: Context): Promise; + function getTopWindow(ctx: BaseContext): Promise; /** * Get the final show window. * @param ctx Indicates the context on which the window depends * @since 8 */ - function getTopWindow(ctx: Context, callback: AsyncCallback): void; + function getTopWindow(ctx: BaseContext, callback: AsyncCallback): void; /** - * minimize all app windows. + * Minimize all app windows. * @systemapi Hide this for inner system use. * @since 9 */ function minimizeAll(id: number, callback: AsyncCallback): void; /** - * minimize all app windows. + * Minimize all app windows. * @systemapi Hide this for inner system use. * @since 9 */