-
Notifications
You must be signed in to change notification settings - Fork 9
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
Typing issues #97
Comments
I recently did some work on typing in #96 as there was indeed a need for some improvements. It may culminate with a major version bump, pretty minor changes to the api but changes nonetheless I'm not sure about the long thing, sometimes that can imply that I need to include @types/long in the actual dependencies of @gmod/bam instead of just the devDependencies I would have to assess if there are any remaining type improvements that can be done |
Just curious are you using skipLibCheck:true or false? |
It's on the default setting (false?). It seems that I can get rid of the error message by setting it to true. Is it a good long-term solution? |
We can likely aim to fix usage of @gmod/bam with skipLibCheck:false (e.g. the default) but I have used skipLibCheck:true in a lot of my projects that consume libraries like @gmod/bam (not ideal, but a quick workaround for stuff like this) |
Thanks, Colin! It seems that skipLibCheck skips those parts of library type definitions I'm not using anywhere, so, I think I can safely enable it for now. |
Hi,
I'm trying to validate types (I'm using TS through JSDoc) in my codebase using
tsc
, but I stumbled upon a couple of issues in@GMOD/bam@1.1.18
.The first one:
There's no
"long"
package imported inutil.d.ts
(https://cdn.jsdelivr.net/npm/@gmod/bam@1.1.18/dist/util.d.ts), although it's in the original source file:bam-js/src/util.ts
Line 1 in 492c145
🤷
If I checkout
v1.1.18
of this repo and compile the project, the long import is missing fromutil.d.ts
. If I checkout HEAD and compile, then it's there. Maybe there's some problem in the oldtypescript@4.9.4
(?)And then there's the other issue:
Indeed, they are different:
bam-js/src/bamFile.ts
Line 401 in 492c145
bam-js/src/htsget.ts
Line 110 in 492c145
However, I don't have enough knowledge of TypeScript to say whether these should be compatible or not. 🤔
And btw, I'm using
typescript@5.0.4
.The text was updated successfully, but these errors were encountered: