qwik
qwik copied to clipboard
Export platform specific request handlers
What is it?
- [x] Feature / enhancement
- [ ] Bug
- [ ] Docs / tests
Description
For a while now, we've had the platform field on available on the RequestHandler type, but the field is typed to unknown and most users are completely unaware that it exists.
This PR exports special RequestHandler* types from the middlewares for users to take advantage of when developing for their specific platform.
Checklist:
- [x] My code follows the developer guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have made corresponding changes to the documentation
- [ ] Added new tests to cover the fix / functionality
Run & review this pull request in StackBlitz Codeflow.
Not sure what's happening with the build error. Is @public
not the correct tag for these type exports?
It's * @alpha
I think it's a great PR!
Thanks. Jeez. Still not building after using alpha tags and running yarn api.update. Not sure what I broke.
I guess it works better when you run api.update from the project root. Should be good now!