Generated d.ts file from npm.jsr.io
doesn't have Symbol.iterator
declaration
#886
Labels
d.ts generation
related to generation of d.ts for non-deno targets
Hi, I recently published a module on JSR: https://jsr.io/@melkam/circular-buffer. I tried using it with other package managers like pnpm and bun. It works fine overall, but I noticed a problem: my CircularBuffer class doesn't include the
[Symbol.iterator]()
method in its generated .d.ts file, even though it's defined in the source code.Here’s my source code:
But the generated .d.ts file looks like this:
For some reason, [Symbol.iterator] just disappears in the declaration file. To check it out, you can install my package with a package manager other than Deno and inspect
/node_modules/@melkam/circular-buffer/_dist/mod.d.ts
.I also tried creating a sandbox example to demo this issue, but it seems JSR modules can’t be installed in StackBlitz right now.
The text was updated successfully, but these errors were encountered: