From 3e4ca30b8ac4c1e766c1cc74de04d7660cf705c4 Mon Sep 17 00:00:00 2001 From: summer8999 Date: Tue, 29 Nov 2022 12:51:02 +0800 Subject: [PATCH 1/2] api comments modify Signed-off-by: summer8999 --- api/@ohos.distributedHardware.deviceManager.d.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/api/@ohos.distributedHardware.deviceManager.d.ts b/api/@ohos.distributedHardware.deviceManager.d.ts index 02aacbe0c6..0f82f3c0dc 100644 --- a/api/@ohos.distributedHardware.deviceManager.d.ts +++ b/api/@ohos.distributedHardware.deviceManager.d.ts @@ -357,7 +357,7 @@ declare namespace deviceManager { * Obtains a list of trusted devices. * * @throws {BusinessError} 11600101 - Failed to execute the function. - * @return Returns a list of trusted devices. + * @returns Returns a list of trusted devices. * @systemapi this method can be used only by system applications. */ getTrustedDeviceListSync(): Array; @@ -368,7 +368,7 @@ declare namespace deviceManager { * @since 8 * @param callback Indicates the callback to be invoked upon getTrustedDeviceList * @throws {BusinessError} 401 - Input parameter error. - * @return Returns a list of trusted devices. + * @returns Returns a list of trusted devices. * @systemapi this method can be used only by system applications. */ getTrustedDeviceList(callback:AsyncCallback>): void; @@ -377,7 +377,7 @@ declare namespace deviceManager { * Obtains a list of trusted devices. * * @since 8 - * @return Returns a list of trusted devices. + * @returns Returns a list of trusted devices. * @systemapi this method can be used only by system applications. */ getTrustedDeviceList(): Promise>; @@ -387,7 +387,7 @@ declare namespace deviceManager { * * @since 8 * @throws {BusinessError} 11600101 - Failed to execute the function. - * @return Returns local device info. + * @returns Returns local device info. * @systemapi this method can be used only by system applications. */ getLocalDeviceInfoSync(): DeviceInfo; @@ -398,7 +398,7 @@ declare namespace deviceManager { * @since 8 * @param callback Indicates the callback to be invoked upon getLocalDeviceInfo * @throws {BusinessError} 401 - Input parameter error. - * @return Returns local device info. + * @returns Returns local device info. * @systemapi this method can be used only by system applications. */ getLocalDeviceInfo(callback:AsyncCallback): void; @@ -407,7 +407,7 @@ declare namespace deviceManager { * Obtains local device info * * @since 8 - * @return Returns local device info. + * @returns Returns local device info. * @systemapi this method can be used only by system applications. */ getLocalDeviceInfo(): Promise; -- Gitee From c619e37bd4b38bf3d721d1ccb3e4e880636fd140 Mon Sep 17 00:00:00 2001 From: summer8999 Date: Tue, 29 Nov 2022 12:52:48 +0800 Subject: [PATCH 2/2] api comments modify Signed-off-by: summer8999 --- api/@ohos.distributedHardware.deviceManager.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/@ohos.distributedHardware.deviceManager.d.ts b/api/@ohos.distributedHardware.deviceManager.d.ts index 0f82f3c0dc..dae24964f1 100644 --- a/api/@ohos.distributedHardware.deviceManager.d.ts +++ b/api/@ohos.distributedHardware.deviceManager.d.ts @@ -192,7 +192,7 @@ declare namespace deviceManager { freq: ExchangeFreq; /** - * Whether the device should be ranged by discoverer. + * Whether the device should be ranged by discoverer. */ ranging : boolean; } -- Gitee