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

Missing declaration file when using with typescript in strict mode #49

Closed
sonallux opened this issue Apr 9, 2020 · 0 comments · Fixed by #54
Closed

Missing declaration file when using with typescript in strict mode #49

sonallux opened this issue Apr 9, 2020 · 0 comments · Fixed by #54
Labels
bug Something isn't working

Comments

@sonallux
Copy link
Owner

sonallux commented Apr 9, 2020

When using this library in a typescript project with strict mode turned on, the ts compiler complains about missing declaration file semver/classes/semver. The error is caused because we import SemVer in our types.d.ts. The declaration (@types/semver) is specified as dev dependency, so they are not present when using release-script.

There are two possible solutions for this problem

  • Move the @types/semver from devDependencies to dependencies
  • Include the definitions for SemVer in our types.d.ts
@sonallux sonallux added the bug Something isn't working label Apr 9, 2020
@sonallux sonallux changed the title Missing external declarations when using with typescript in strict mode Missing declaration file when using with typescript in strict mode Apr 9, 2020
@sonallux sonallux linked a pull request Apr 13, 2020 that will close this issue
sonallux pushed a commit that referenced this issue Apr 13, 2020
- Change semver version in package.json to version range
- Fixes #49 
- Reverts changes from #36
- Add timeout to workflow
sonallux pushed a commit that referenced this issue Dec 1, 2020
- Change semver version in package.json to version range
- Fixes #49 
- Reverts changes from #36
- Add timeout to workflow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant