cowboyd
Explore posts from serversAarktype
•Created by cowboyd on 9/3/2024 in #questions
How to type an expressjs-like route handler based on the path pattern.
Thanks so much for your time. This was really helpful.
22 replies
Aarktype
•Created by cowboyd on 9/3/2024 in #questions
How to type an expressjs-like route handler based on the path pattern.
I'm writing a structurally concurrent web server using Effection https://github.com/thefrontside/revolution/ (very alpha at the moment).There are a lot of use-cases for typed routes in it, but my current one is that I need to generate a sitemap.xml, and so each route that extends the sitemap needs to "generate" a set of parameters that will in turn "generate" a set of static paths corresponding to those parameters. I'd like to strongy type that generation. In effect say "you need to give me a list of entries that have this shape, and I'll plug them back into the path pattern" to create a list of paths
22 replies
Aarktype
•Created by cowboyd on 9/3/2024 in #questions
How to type an expressjs-like route handler based on the path pattern.
If there is something with clear advantages, I might be able to integrate it.
22 replies
Aarktype
•Created by cowboyd on 9/3/2024 in #questions
How to type an expressjs-like route handler based on the path pattern.
Not really no, and I'm actually not using express, but I'm using express syntax in order to be very familiar to developers, but I'm not locked into it.
22 replies
Aarktype
•Created by cowboyd on 9/3/2024 in #questions
How to type an expressjs-like route handler based on the path pattern.
ah. validation be an upgrade on top of an upgrade
22 replies
Aarktype
•Created by cowboyd on 9/3/2024 in #questions
How to type an expressjs-like route handler based on the path pattern.
not familiar with the
tge
acronym, but just having the basic shape would be a step up.22 replies