8track icon indicating copy to clipboard operation
8track copied to clipboard

I built something similar

Open gzuidhof opened this issue 5 years ago • 1 comments

Hey jrf0110,

I built a similar framework, perhaps it can serve as an inspiration. It also features typed (optional) path parameters, but it does it without the need for literal strings (perhaps this is on your to-do list too?). Here's a GIF

XeOyoxF

It also allows you to type the state (what you call ctx.data) a handler/middleware expects and will throw a type error if you get it wrong, I think that's possible here too? That part is not super elegant though..

Check it the intro post here, curious to hear your thoughts!

gzuidhof avatar Feb 04 '21 00:02 gzuidhof

Super awesome! I've been meaning to convert to template literal types for a while. Good to see it works :)

jrf0110 avatar Apr 19 '21 16:04 jrf0110