Closed copperwall closed 4 years ago
I'll make a new release tonight
Hey Simon, could you do the release please?
Hi @SGrondin, I was walking through existing open issues in Octokit and I arrived to an issue which depends on these changes to be released, what's the status of bottleneck
project? Can we help you with something?
Thanks for your time and please let us know if you need help.
@SGrondin it looks like there is still no new release. Could you please do a new release that includes this fix?
Hey there, octokit/plugin-retry.js uses
bottleneck/light
for ratelimiting, but there's a little bit of trouble importing types when usingbottleneck/light
over the mainbottleneck
import.I did some testing and adding a
light.d.ts
definition file with existing namespace and class types but under abottleneck/light
module lets typescript find the types for the light import.I noticed that the existing type definitions were using EJS templates, so I move the namespace and class type definitions to a shared EJS template and included that in both the bottleneck.d.ts.ejs and light.d.ts.ejs template files.
This fixes the issue in https://github.com/octokit/plugin-retry.js/pull/110, but I'm open to suggestions if there's a better way to do this!