You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
exportclassCircularBuffer<T>implementsIterable<T,undefined>{// ... other class methods[Symbol.iterator](): Iterator<T,undefined>{return{ ... };}}
But the generated .d.ts file looks like this:
exportdeclareclassCircularBuffer<T>implementsIterable<T,undefined>{// ... other class methods// [Symbol.iterator] is missing :(}
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:
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: