From 25313b5d694f275d7cfd272c6b6df9b73073484c Mon Sep 17 00:00:00 2001 From: xiapan Date: Mon, 21 Jul 2025 15:10:33 +0800 Subject: [PATCH] fix error of missing class and method Signed-off-by: xiapan Change-Id: I325032f496be37c5b4d899c505586ddfa80ce6bf --- .../js/taihe/idl/ohos.driver.deviceManager.taihe | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/frameworks/js/taihe/idl/ohos.driver.deviceManager.taihe b/frameworks/js/taihe/idl/ohos.driver.deviceManager.taihe index e920f4c..a0e832b 100644 --- a/frameworks/js/taihe/idl/ohos.driver.deviceManager.taihe +++ b/frameworks/js/taihe/idl/ohos.driver.deviceManager.taihe @@ -53,6 +53,16 @@ union DeviceUnion { t: Device; } +@!sts_inject(""" +class RemoteDeviceDriver_inner implements RemoteDeviceDriver { + deviceId: long; + remote: rpc.IRemoteObject; + constructor(deviceId: long, remote: rpc.IRemoteObject) { + this.deviceId = deviceId; + this.remote = remote; + } +} +""") struct RemoteDeviceDriver { deviceId: u64; remote: @sts_type("rpc.IRemoteObject") Opaque; -- Gitee