diff --git a/api/@internal/component/ets/xcomponent.d.ts b/api/@internal/component/ets/xcomponent.d.ts index 4bdd70b6fa1121e228ee6be5240a85d0eb3bee77..2d1a4f6588cf450e60e2d3e6f5e7d97c20ec4c95 100644 --- a/api/@internal/component/ets/xcomponent.d.ts +++ b/api/@internal/component/ets/xcomponent.d.ts @@ -15,6 +15,23 @@ import { CommonMethod } from "./common"; +/** + * @since 8 + */ +export declare class XComponentController { + /** + * constructor. + * @since 8 + */ + constructor(); + + /** + * get the id of surface created by XComponent. + * @since 8 + */ + getXComponentSurfaceId(); +} + /** * @since 8 */ @@ -22,8 +39,8 @@ interface XComponent extends XComponentAttribute { (value: { id: string; type: string; - libraryname: string; - source: string; + libraryname?: string; + controller?: XComponentController; }): XComponent; }