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

Automatically generate type definition files during npm run build #125

Merged
merged 1 commit into from
Sep 28, 2023

Conversation

tri-star
Copy link
Contributor


Description

Thank you for the wonderful library!

While using midi-writer-js in TypeScript, I noticed that some methods were not being auto-completed, so I created this PR.

image

  • In the above, Track.controllerChange and others are not listed.

By adjusting tsconfig.json, it is possible to automatically output d.ts files under build/types when running npm run build, so I have changed it to automatically output at build time.

With this PR method, type definition files will be output to build/types and browser/types when running npm run build.
I believe this may result in a change in the project's policy, so please consider it.

Screenshots

As far as I have reflected the changes in node_modules/midi-writer-js of my project, I have confirmed that Track.controllerChange is also auto-completed by this method.

image

@grimmdude
Copy link
Owner

Thanks, @tri-star! Admittedly I'm still a bit new to TypeScript so this is very much appreciated.

@grimmdude grimmdude merged commit 6caabc7 into grimmdude:master Sep 28, 2023
2 checks passed
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