Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I built something similar #36

Open
gzuidhof opened this issue Feb 4, 2021 · 1 comment
Open

I built something similar #36

gzuidhof opened this issue Feb 4, 2021 · 1 comment

Comments

@gzuidhof
Copy link

gzuidhof commented Feb 4, 2021

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!

@jrf0110
Copy link
Owner

jrf0110 commented Apr 19, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants