Closed JoltCode closed 2 weeks ago
Export the Duration type https://github.com/upstash/ratelimit-js/blob/492fe7e864b8cff08857c1115d8fa4cfd7b2934e/src/duration.ts#L2 to the external exports, so it can be used when using the library, so you don't have to do Parameters<typeof Ratelimit.slidingWindow>[1] to access the type.
Duration
Parameters<typeof Ratelimit.slidingWindow>[1]
Thanks for pointing that out. We'll fix this ASAP.
Thanks so much 😄
Export the
Duration
type https://github.com/upstash/ratelimit-js/blob/492fe7e864b8cff08857c1115d8fa4cfd7b2934e/src/duration.ts#L2 to the external exports, so it can be used when using the library, so you don't have to doParameters<typeof Ratelimit.slidingWindow>[1]
to access the type.