diff --git a/api/@ohos.multimodalInput.inputDevice.d.ts b/api/@ohos.multimodalInput.inputDevice.d.ts index 04f4738b4d8771abab5010d71f6316cbe63fe31d..6b9100a8755475d9548bcd312860797708366012 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