diff --git a/api/@internal/component/ets/web.d.ts b/api/@internal/component/ets/web.d.ts index dc279cd7df42b054a02f9ec64004a4f0a4b73167..abbd3111855b2f32c0db601f710310b99f4affb1 100644 --- a/api/@internal/component/ets/web.d.ts +++ b/api/@internal/component/ets/web.d.ts @@ -284,13 +284,13 @@ declare interface WebKeyboardOptions { /** * Set the enter key type when the system keyboard is used, the "enter" key related to the {@link inputMethodEngine}. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - enterKeyType?: number; + enterKeyType?: int; /** * Set the custom keyboard builder when the custom keyboard is used. * @@ -334,30 +334,30 @@ declare class WebKeyboardController { /** * Delete text from back to front. * - * @param { number } length - length of text, which will be deleted from back to front. + * @param { int } length - length of text, which will be deleted from back to front. * @syscap SystemCapability.Web.Webview.Core * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - deleteForward(length: number): void; + deleteForward(length: int): void; /** * Delete text from front to back. * - * @param { number } length - length of text, which will be deleted from front to back. + * @param { int } length - length of text, which will be deleted from front to back. * @syscap SystemCapability.Web.Webview.Core * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - deleteBackward(length: number): void; + deleteBackward(length: int): void; /** * Send the function of the key. * - * @param { number } key - action indicates the "enter" key related to the {@link inputMethodEngine} + * @param { int } key - action indicates the "enter" key related to the {@link inputMethodEngine} * @syscap SystemCapability.Web.Webview.Core * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - sendFunctionKey(key: number): void; + sendFunctionKey(key: int): void; /** * Close the custom keyboard. * @@ -5635,12 +5635,12 @@ declare interface RenderProcessNotRespondingData { /** * Process id of render process not responding. * - * @type { number } + * @type { int } * @syscap SystemCapability.Web.Webview.Core * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - pid: number; + pid: int; /** * Reason for the render process not responding. diff --git a/api/@ohos.web.webview.d.ts b/api/@ohos.web.webview.d.ts index de0be74a279d3d1a1e2387923104e660721be079..8ebc06162cc842d3edefb0a2a0bbd3cfcc8c6631 100644 --- a/api/@ohos.web.webview.d.ts +++ b/api/@ohos.web.webview.d.ts @@ -4308,7 +4308,7 @@ declare namespace webview { /** * Gets the id for the current Web. - * @returns { number } Returns the index value of the current Web component. + * @returns { int } Returns the index value of the current Web component. * @throws { BusinessError } 17100001 - Init error. * The WebviewController must be associated with a Web component. * @syscap SystemCapability.Web.Webview.Core @@ -4316,7 +4316,7 @@ declare namespace webview { */ /** * Gets the id for the current Web. - * @returns { number } Returns the index value of the current Web component. + * @returns { int } Returns the index value of the current Web component. * @throws { BusinessError } 17100001 - Init error. * The WebviewController must be associated with a Web component. * @syscap SystemCapability.Web.Webview.Core @@ -4325,7 +4325,7 @@ declare namespace webview { */ /** * Gets the id for the current Web. - * @returns { number } Returns the index value of the current Web component. + * @returns { int } Returns the index value of the current Web component. * @throws { BusinessError } 17100001 - Init error. * The WebviewController must be associated with a Web component. * @syscap SystemCapability.Web.Webview.Core @@ -4334,7 +4334,7 @@ declare namespace webview { * @since arkts {'1.1':'18', '1.2':'20'} * @arkts 1.1&1.2 */ - getWebId(): number; + getWebId(): int; /** * Gets the default user agent.