Open spkesDE opened 1 year ago
Hi,
Is there any update on this?
I confirm both issues:
HomeyAPIApp
signature conflictapi.devices
raises that devices
does not exist for api
Hi,
Again, any update on this? I tried everything up till 3.0.0-rc.14, and I really don't want too do some custom typescript definitions stuff. But I feel I have too as the current once are completely broken.
Athom said they will come when there done with the V3 version. You could use it as any
for a temp fix
Since createAppAPI should be used I assume this is no longer an issue.
A problem also exist with createAppApi
: it does not exist on any of the types HomeyAPIxxx
3.0.8 HomeyAPI should now have 2 static methods on its type.
Can confirm its working, but createAppAPI
should return an HomeyAPI
object not an any
object.
Also the Managers objects are missing in the HomeyAPI
object and mostlikey the sub defintions e.g.
await this.api.insights.getLogEntries(opts)
@jeroenwienk, to ease the follow-up, I created separate issues:
Any news on that topic?
Hey,
the TS definitions are broken. I bet there is more then these examples Current definition:
new HomeyAPIApp(this.homey, false);
Right definition:new HomeyAPIApp({ homey: this.homey, debug?: false })
Also all sub definition are missing e.g.
api.insights
,api.devices
and of course all sub methods.