Closed SimonHoiberg closed 5 years ago
Hi,
Can you please tell me what is providing the TypeScript definitions for you? I did not provide direct support for TypeScript in the original version of the library so I suspect it may be in something that I don't directly provide.
In the JavaScript, I return what the bridge provides, so this has changed in the last year in their API and I suspect that this is the source of the problem you are facing.
I am updating the library to remove a lot of the outdated dependencies and transition to more up to date JavaScript practices (like Classes and native Promises). This will be released user a version 3 in the coming month or so.
Closing issue due to no further response
Hi
First of all, really cool project!
It's seems that there is a possible confusion between the property name 'action' and 'lastAction' when getting groups.
According to the docs, a group object derived with
getGroup(id)
should return an object with the property name 'lastAction', whereasgroups()
should return a list of objects with the property name 'action' instead.I'm using Typescript, and when I use
getGroup(id)
I'm receiving an object which implementsILightGroup
that looks like the following:However, when debugging, I verify that the object in fact does have the property name 'lastAction', just as the documentation specifies. My linter will complain about not owning a property named 'lastAction', and refuse to compile.