-
Notifications
You must be signed in to change notification settings - Fork 34
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
automated test to verify typescript compiler builds of resulting TS file #18
Comments
Thanks for reporting @zewa666 & @stifflerus Tried to reproduce with tsc 2.7.1 and 2.8.3 and I was not able to reproduce it yet. Could provide a sample of:
|
The bug is present when the typescript compiler is invoked with the I added this option to the compile:sample npm script, and found an additional export that was missed in PR #20. However, now the build fails because the declaration files do not pass lint:samples. It believe it would be appropriate to exclude these from tslint.
|
Opened PR #21 |
Good idea @stifflerus, although in the current form the linter isn't automatically started, unless the developer thinks about it. I'd recommend adding Husky with a prepush/precommit hook that will help contributors as well to check for linting issues. @pjmolina can you flag the 0.14.0 version as deprecated? That should make it easier for people having auto-patch-upgrades enabled, to detect the breaking change easier, with a notice to upgrade to v.0.2.x |
Fixed with PR #21 |
I've opened a request to fix issues like these in TypeScript by bringing declaration files to parity with language features. microsoft/TypeScript#35822 |
with the latest release and combination with a newer TypeScript version, there was a new issue introduced (see PR #17). It would be great if we could add an integration test to make sure this type of issues is getting caught.
Besides that, changing return types of functions is considered a breaking-change so the latest release really should have been bumped with 0.2.0 due to non RC policy with SemVer instead of a major bump
The text was updated successfully, but these errors were encountered: