kwhitley/itty-router-extras

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.

hmnd commented

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!)

hmnd commented

@kwhitley Converting this library to TS would be great! I'll close #14 since I think the @types entry should suffice until then. Maybe I'll take up converting it if I get some spare time ;)

Closing this because that's exactly what's happening at kwhitley/itty-router#121 :)

Hang in there!