- Notifications
You must be signed in to change notification settings - Fork176
Add TypeScript types to release#218
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Looks like we need to do one more step to get this working correctly. Currently I'm getting the following error when importing this project into a typescript file: |
That's because the declaration file is namespace-based and not module-based. It needs to be changed (regenerated) to support modules |
wdanilo commentedJan 23, 2023
FYI, you can use |
nerdError commentedOct 5, 2023
Any updates? |
last I tried tsup was not generating the bundled typings correctly :-( Would really appreciate a contrib on this subject |
Adds typescript types to the release to make it much easier for people to use Spector.js with typescript
Docs on the subject:
https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html