-
Notifications
You must be signed in to change notification settings - Fork 127
feat(types): support generics #284
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
base: main
Are you sure you want to change the base?
Conversation
This seems like a great change. I've just tried on a project I have and noticed a few things. Given:
both
This seems to be a limitation of the type
Something like:
seems to over fine but it is a bit more cumbersome. |
I see, I'll dig into it in the next few days. |
Basic Type-Safe Setup
Type-Safe Request Handlers
ALB Handler Example
API Gateway v1 Handler Example
API Gateway v2 Handler Example
Type-Safe Middleware
Source-Agnostic Middleware
Source-Specific Middleware
Type-Safe Error Handling
Advanced Type-Safe Examples
Custom Request Types
Response Type Extensions
Using Built-in Auth Property
Running the API
Type Guards Usage
Best Practices
Issues
implements #276
and closes #244