From 2f79869996d9ec1b4387af8bb8d6604e01dba167 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cwangyipeng=E2=80=9D?= Date: Thu, 24 Nov 2022 19:42:05 +0800 Subject: [PATCH] fixed b8da07a from https://gitee.com/wang-yi-peng/interface_sdk-js/pulls/3486 fix: Correct d.ts word errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: “wangyipeng” --- api/@ohos.usb.d.ts | 6 +++--- api/@ohos.usbV9.d.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/api/@ohos.usb.d.ts b/api/@ohos.usb.d.ts index fce6f34e61..76fb2cac52 100644 --- a/api/@ohos.usb.d.ts +++ b/api/@ohos.usb.d.ts @@ -197,13 +197,13 @@ declare namespace usb { * Performs control transfer. * * @param pipe Device pipe defined by {@link USBDevicePipe}, which is used to determine the USB device. - * @param contrlparam Control transfer parameters. + * @param controlparam Control transfer parameters. * @param timeout Timeout duration. This parameter is optional. The default value is **0**, indicating no timeout. * @return Returns the size of the transmitted or received data block if the control transfer is successful; return **-1** if an exception occurs. * @syscap SystemCapability.USB.USBManager * @since 8 */ - function controlTransfer(pipe: USBDevicePipe, contrlparam: USBControlParams, timeout?: number): Promise; + function controlTransfer(pipe: USBDevicePipe, controlparam: USBControlParams, timeout?: number): Promise; /** * Performs bulk transfer. @@ -295,7 +295,7 @@ declare namespace usb { /** - * Represents a USB interface. One USBconfig {@link USBConfig} can contain multiple **USBInterface** instances, each providing a specific function. + * Represents a USB interface. One config {@link USBConfig} can contain multiple **USBInterface** instances, each providing a specific function. * * @syscap SystemCapability.USB.USBManager * @since 8 diff --git a/api/@ohos.usbV9.d.ts b/api/@ohos.usbV9.d.ts index 5ff0ebbe45..3c99f2c5d8 100644 --- a/api/@ohos.usbV9.d.ts +++ b/api/@ohos.usbV9.d.ts @@ -244,14 +244,14 @@ declare namespace usbV9 { * Performs control transfer. * * @param pipe Device pipe defined by {@link USBDevicePipe}, which is used to determine the USB device. - * @param contrlparam Control transfer parameters. + * @param controlparam Control transfer parameters. * @param timeout Timeout duration. This parameter is optional. The default value is **0**, indicating no timeout. * @return Returns the size of the transmitted or received data block if the control transfer is successful; return **-1** if an exception occurs. * @throws {BusinessError} 401 - The parameter types do not match or parameter is not specified. * @syscap SystemCapability.USB.USBManager * @since 9 */ - function controlTransfer(pipe: USBDevicePipe, contrlparam: USBControlParams, timeout?: number): Promise; + function controlTransfer(pipe: USBDevicePipe, controlparam: USBControlParams, timeout?: number): Promise; /** * Performs bulk transfer. @@ -346,7 +346,7 @@ declare namespace usbV9 { /** - * Represents a USB interface. One USBconfig {@link USBConfig} can contain multiple **USBInterface** instances, each providing a specific function. + * Represents a USB interface. One config {@link USBConfig} can contain multiple **USBInterface** instances, each providing a specific function. * * @typedef USBInterface * @syscap SystemCapability.USB.USBManager -- Gitee