Typescript type definitions
Closed this issue ยท 5 comments
Hi there, are there any plans to introduce TS type definitions? I think the router is a cool project and I'd love to contribute.
@types/itty-router-extras is now live :)
Awesome!!! I'm playing catch up (life issues the last few months), and just gave itty-router the TLC it needed, so this one is next :)
Great work on the @types entry! ๐
Hi there, are there any plans to introduce TS type definitions? I think the router is a cool project and I'd love to contribute.
Absolutely, and a @types definition is definitely a great start - but ultimately I would probably like this entire library to be rewritten in TS... it's a pretty ideal use-case, compared to the code-golfed itty-router, which absolutely wouldn't benefit from it. This will hopefully be in the works before long (or if some amazing soul beats me to it!)
Closing this because that's exactly what's happening at kwhitley/itty-router#121 :)
Hang in there!