-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added TypeScript type definitions #13
Conversation
index.d.ts
Outdated
capsMask: number | ||
ledsCount: number | ||
channels: { | ||
channelsCount: number |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does not look complete
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the CUE SDK documentation is a property deviceId for the CorsairDeviceInfo but I didn't manage to get this with any of my devices. Does this property really exist?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll create an issue for this, js wrapper does not have CorsairDeviceInfo.deviceId property but it does exist in the CUESDK.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#15 will fix it once this PR is merged
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I added an index.d.ts file.
This allows to get intellisense support for regular usage with JavaScript and to use this library with TypeScript using the type definitions.