Typesafe assets

Hi everyone, I guess we're all on a quest to typesafe everything. I'm currently thinking of moving to https://github.com/ethanniser/next-typesafe-url for routing in my Next.js app instead of my custom implementation. That got me thinking: is there maybe a webpack plugin or a script for making types (union of strings in this instance) for /public directory? Thanks!
GitHub
GitHub - ethanniser/next-typesafe-url: Fully typesafe, JSON seriali...
Fully typesafe, JSON serializable, and zod validated URL search params, dynamic route params, and routing for NextJS. - GitHub - ethanniser/next-typesafe-url: Fully typesafe, JSON serializable, and...
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server