From 42b0ab7122f8c06e87aa47450f2b809de84d2d17 Mon Sep 17 00:00:00 2001 From: hungry_feiwei Date: Wed, 16 Feb 2022 13:27:31 +0800 Subject: [PATCH] Signed-off-by:hungry_feiwei --- api/@ohos.multimodalInput.inputDevice.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/@ohos.multimodalInput.inputDevice.d.ts b/api/@ohos.multimodalInput.inputDevice.d.ts index 04f4738b4d..6b9100a875 100755 --- a/api/@ohos.multimodalInput.inputDevice.d.ts +++ b/api/@ohos.multimodalInput.inputDevice.d.ts @@ -70,6 +70,7 @@ declare namespace inputDevice { * @param callback callback function, receive reported data */ function getDeviceIds(callback: AsyncCallback>): void; + function getDeviceIds(): Promise>; /** * Obtain the information about an input device. @@ -81,6 +82,7 @@ declare namespace inputDevice { * @param callback callback function, receive reported data */ function getDevice(deviceId: number, callback: AsyncCallback): void; + function getDevice(deviceId: number): Promise; } export default inputDevice; \ No newline at end of file -- Gitee