Skip to content

Support route model binding and interfaces#854

Merged
bakerkretzmar merged 3 commits intotighten:2.xfrom
christian98:ts-repro
Sep 13, 2025
Merged

Support route model binding and interfaces#854
bakerkretzmar merged 3 commits intotighten:2.xfrom
christian98:ts-repro

Conversation

@christian98
Copy link
Contributor

No description provided.

@bakerkretzmar bakerkretzmar marked this pull request as ready for review September 13, 2025 23:14
@bakerkretzmar bakerkretzmar changed the title test: add test for route model binding and interfaces Support route model binding and interfaces Sep 13, 2025
@bakerkretzmar
Copy link
Collaborator

Thanks! Really appreciate the simple failing test, genuinely one of the best ways to start a PR 🙏

Took me a while to figure out but in the end this turned out to be suspiciously simple. I'm glad it works now because the use case behind this, where your route parameter conforms to some TypeScript interface that is specific about its properties (like a model), is probably pretty common. I'm doing this more in my own projects too.

@bakerkretzmar bakerkretzmar merged commit 8e286c1 into tighten:2.x Sep 13, 2025
28 checks passed
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

Successfully merging this pull request may close these issues.

2 participants