Skip to content
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

Merged
merged 6 commits into from
Apr 25, 2021
Merged

Added TypeScript type definitions #13

merged 6 commits into from
Apr 25, 2021

Conversation

WhySoBad
Copy link
Contributor

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.

index.d.ts Outdated
capsMask: number
ledsCount: number
channels: {
channelsCount: number
Copy link
Contributor

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

Copy link
Contributor Author

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?

Copy link
Contributor

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.

Copy link
Contributor

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

index.d.ts Outdated Show resolved Hide resolved
index.d.ts Outdated Show resolved Hide resolved
index.d.ts Outdated Show resolved Hide resolved
index.d.ts Outdated Show resolved Hide resolved
@intrueder intrueder self-requested a review April 25, 2021 06:23
Copy link
Contributor

@intrueder intrueder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@intrueder intrueder merged commit ff05525 into CorsairOfficial:master Apr 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants