Open OlivierZal opened 1 year ago
I think you mean the problem is that capabilitiesObj is types as any?
Yes @jeroenwienk, now it's any
but before homey-api@3.0.0
it was object
.
The problem is that the type Device
is not complete, as you can see on the following screenshots:
Property 'capabilities' does not exist on type 'Device'.ts(2339)
Property 'capabilitiesObj' does not exist on type 'Device'.ts(2339)
Fact that
HomeyAPIV2.ManagerDevices.Device
is typed asobject
raises errors for such lines of code:or