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

Fix StdioOverrideFunction Type export #41

Merged
merged 1 commit into from
Apr 15, 2024

Conversation

moshen
Copy link
Owner

@moshen moshen commented Apr 15, 2024

This was a case of bad management of the types in play and their exposure outside the package. The fix that works for both package maintenance, and external users is to ensure that the type is available and copied into the final npm package. Finally this would have been caught with a test, which has now been added.

@moshen moshen force-pushed the fix-stdiooverridefunction-type branch 3 times, most recently from d7c5b07 to 84188c9 Compare April 15, 2024 02:21
This was a case of bad management of the types in play and their
exposure outside the package. The fix that works for both package
maintenance, and external users is to ensure that the type is available
and copied into the final npm package. Finally this would have been
caught with a test, which has now been added.

- Fix #40
- Add dedicated type file for StdioOverrideFunction
- Change type file paths to be relative
- Move all type files to the `src` folder to make things easier
- Add Makefile rules to copy over `.d.ts` files so they are in the
  package
@moshen moshen force-pushed the fix-stdiooverridefunction-type branch from 84188c9 to 91e0178 Compare April 15, 2024 02:35
@moshen moshen merged commit 5620884 into master Apr 15, 2024
2 checks passed
@moshen moshen deleted the fix-stdiooverridefunction-type branch April 15, 2024 02:47
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.

Error in TypeScript compilation: Cannot find name 'StdioOverrideFunction'
1 participant