diff --git a/api/@internal/component/ets/web.d.ts b/api/@internal/component/ets/web.d.ts index eea28fc20f46c8fbe849ac5bcc80950f56388b4a..b625419dc11dc81946ba9192ff56fd7be1dd3e19 100644 --- a/api/@internal/component/ets/web.d.ts +++ b/api/@internal/component/ets/web.d.ts @@ -3702,14 +3702,14 @@ declare class ConsoleMessage { /** * Gets the line number of a console message. * - * @returns { number } Return the line number of a console message. + * @returns { int } Return the line number of a console message. * @syscap SystemCapability.Web.Webview.Core * @since 8 */ /** * Gets the line number of a console message. * - * @returns { number } Return the line number of a console message. + * @returns { int } Return the line number of a console message. * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 @@ -3717,14 +3717,14 @@ declare class ConsoleMessage { /** * Gets the line number of a console message. * - * @returns { number } Return the line number of a console message. + * @returns { int } Return the line number of a console message. * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice * @since arkts {'1.1':'18', '1.2':'20'} * @arkts 1.1&1.2 */ - getLineNumber(): number; + getLineNumber(): int; /** * Gets the message level of a console message. @@ -4025,27 +4025,27 @@ declare class WebResourceResponse { /** * Gets the response data. * - * @returns { string | number | ArrayBuffer | Resource | undefined } Return the response data. - * string type indicate string in HTML format. - * number type indicate file handle. - * Resource type indicate $rawfile resource. - * ArrayBuffer type indicate binary data. + * @returns { string | int | ArrayBuffer | Resource | undefined } Return the response data. + * string type indicate string in HTML format. + * number type indicate file handle. + * Resource type indicate $rawfile resource. + * ArrayBuffer type indicate binary data. * @syscap SystemCapability.Web.Webview.Core * @since 13 */ /** * Gets the response data. * - * @returns { string | number | ArrayBuffer | Resource | undefined } Return the response data. - * string type indicate string in HTML format. - * number type indicate file handle. - * Resource type indicate $rawfile resource. - * ArrayBuffer type indicate binary data. + * @returns { string | int | ArrayBuffer | Resource | undefined } Return the response data. + * string type indicate string in HTML format. + * number type indicate file handle. + * Resource type indicate $rawfile resource. + * ArrayBuffer type indicate binary data. * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @since 18 */ - getResponseDataEx(): string | number | ArrayBuffer | Resource | undefined; + getResponseDataEx(): string | int | ArrayBuffer | Resource | undefined; /** * Gets the response encoding. @@ -4141,53 +4141,53 @@ declare class WebResourceResponse { /** * Gets the response code. * - * @returns { number } Return the response code. + * @returns { int } Return the response code. * @syscap SystemCapability.Web.Webview.Core * @since 8 */ /** * Gets the response code. * - * @returns { number } Return the response code. + * @returns { int } Return the response code. * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - getResponseCode(): number; + getResponseCode(): int; /** * Sets the response data. * - * @param { string | number | Resource } data - the response data. + * @param { string | int | Resource } data - the response data. * @syscap SystemCapability.Web.Webview.Core * @since 9 */ /** * Sets the response data. * - * @param { string | number | Resource } data - the response data. - * string type indicate strings in HTML format. - * number type indicate file handle. - * Resource type indicate $rawfile resource. + * @param { string | int | Resource } data - the response data. + * string type indicate strings in HTML format. + * number type indicate file handle. + * Resource type indicate $rawfile resource. * @syscap SystemCapability.Web.Webview.Core * @since 10 */ /** * Sets the response data. * - * @param { string | number | Resource | ArrayBuffer } data - the response data. - * string type indicate strings in HTML format. - * number type indicate file handle. - * Resource type indicate $rawfile resource. - * ArrayBuffer type indicate binary data. + * @param { string | int | Resource | ArrayBuffer } data - the response data. + * string type indicate strings in HTML format. + * number type indicate file handle. + * Resource type indicate $rawfile resource. + * ArrayBuffer type indicate binary data. * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - setResponseData(data: string | number | Resource | ArrayBuffer): void; + setResponseData(data: string | int | Resource | ArrayBuffer): void; /** * Sets the response encoding. @@ -4295,14 +4295,14 @@ declare class WebResourceResponse { /** * Sets the response code. * - * @param { number } code the response code. + * @param { int } code the response code. * @syscap SystemCapability.Web.Webview.Core * @since 9 */ /** * Sets the response code. * - * @param { number } code the response code. + * @param { int } code the response code. * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 @@ -4310,13 +4310,13 @@ declare class WebResourceResponse { /** * Sets the response code. * - * @param { number } code the response code. + * @param { int } code the response code. * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - setResponseCode(code: number): void; + setResponseCode(code: int): void; /** * Sets the response is ready or not. @@ -4527,14 +4527,14 @@ declare class WebResourceError { /** * Gets the code of the Web resource error. * - * @returns { number } Return the code of the Web resource error. + * @returns { int } Return the code of the Web resource error. * @syscap SystemCapability.Web.Webview.Core * @since 8 */ /** * Gets the code of the Web resource error. * - * @returns { number } Return the code of the Web resource error. + * @returns { int } Return the code of the Web resource error. * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @since 10 @@ -4542,14 +4542,14 @@ declare class WebResourceError { /** * Gets the code of the Web resource error. * - * @returns { number } Return the code of the Web resource error. + * @returns { int } Return the code of the Web resource error. * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - getErrorCode(): number; + getErrorCode(): int; } /** @@ -6378,14 +6378,14 @@ declare interface OnDownloadStartEvent { /** * The contentLength of page. * - * @type { number } + * @type { long } * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - contentLength: number; + contentLength: long; } /** @@ -6864,13 +6864,13 @@ declare interface OnClientAuthenticationEvent { /** * The port number of the request certificate server. * - * @type { number } + * @type { int } * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - port : number; + port : int; /** * Acceptable asymmetric key types. diff --git a/api/@ohos.web.webview.d.ts b/api/@ohos.web.webview.d.ts index 799e045d0ef62794fe02ccc87abde3c73e77ebc0..a9467c5008d05183158da9a9c5c9ff3779611521 100644 --- a/api/@ohos.web.webview.d.ts +++ b/api/@ohos.web.webview.d.ts @@ -3398,14 +3398,14 @@ declare namespace webview { /** * Get the number value of the JavaScript code execution result. - * @returns { number } - Returns data of number type + * @returns { double | long } - Returns data of number type * @throws { BusinessError } 17100014 - The type and value of the message do not match. * @syscap SystemCapability.Web.Webview.Core * @since 10 */ /** * Get the number value of the JavaScript code execution result. - * @returns { number } - Returns data of number type + * @returns { double | long } - Returns data of number type * @throws { BusinessError } 17100014 - The type and value of the message do not match. * @syscap SystemCapability.Web.Webview.Core * @atomicservice @@ -3413,7 +3413,7 @@ declare namespace webview { */ /** * Get the number value of the JavaScript code execution result. - * @returns { number } - Returns data of number type + * @returns { double | long } - Returns data of number type * @throws { BusinessError } 17100014 - The type and value of the message do not match. * @syscap SystemCapability.Web.Webview.Core * @crossplatform @@ -3421,7 +3421,7 @@ declare namespace webview { * @since arkts {'1.1':'18', '1.2':'20'} * @arkts 1.1&1.2 */ - getNumber(): number; + getNumber(): double | long; /** * Get the boolean value of the JavaScript code execution result. @@ -3470,14 +3470,14 @@ declare namespace webview { /** * Get the array value of the the JavaScript code execution result. - * @returns { Array } - Returns data of Array type + * @returns { Array } - Returns data of Array type * @throws { BusinessError } 17100014 - The type and value of the message do not match. * @syscap SystemCapability.Web.Webview.Core * @since 10 */ /** * Get the array value of the the JavaScript code execution result. - * @returns { Array } - Returns data of Array type + * @returns { Array } - Returns data of Array type * @throws { BusinessError } 17100014 - The type and value of the message do not match. * @syscap SystemCapability.Web.Webview.Core * @atomicservice @@ -3485,7 +3485,7 @@ declare namespace webview { */ /** * Get the array value of the the JavaScript code execution result. - * @returns { Array } - Returns data of Array type + * @returns { Array } - Returns data of Array type * @throws { BusinessError } 17100014 - The type and value of the message do not match. * @syscap SystemCapability.Web.Webview.Core * @crossplatform @@ -3493,7 +3493,7 @@ declare namespace webview { * @since arkts {'1.1':'18', '1.2':'20'} * @arkts 1.1&1.2 */ - getArray(): Array; + getArray(): Array; } /** @@ -9417,23 +9417,23 @@ declare namespace webview { * Set the maximum size of pages that can cache. * Default is 1, max is 50. * - * @type { number } + * @type { int } * @syscap SystemCapability.Web.Webview.Core * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - size: number; + size: int; /** * Set the lifetime in seconds in the BackForwardCache. * Default is 600. * - * @type { number } + * @type { int } * @syscap SystemCapability.Web.Webview.Core * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - timeToLive: number; + timeToLive: int; /** * @syscap SystemCapability.Web.Webview.Core