-
Notifications
You must be signed in to change notification settings - Fork 0
Update Elysia to 1.3 #316
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Elysia to 1.3 #316
Conversation
|
Seems there are some bugs in Eden Treaty typescript types. Check again on a version greater than:
|
|
Tracking: elysiajs/eden#71 |
| export const requestUserHooks = new Elysia({ | ||
| name: 'hooks:getRequestUser', | ||
| }).derive((context) => ({ | ||
| }).derive({ as: 'global' }, (context) => ({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should double check that this is the correct way to do this.
| }) | ||
| .use(requestUserHooks) | ||
| .derive((context) => { | ||
| .derive({ as: 'global' }, (context) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should double check that this is the correct way to do this.
Closes: #262