We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
"@elysiajs/eden": "^1.2.0", "elysia": "^1.2.10"
NA
import { treaty } from '@elysiajs/eden' import swagger from '@elysiajs/swagger' import Elysia from 'elysia' const app = new Elysia({ prefix: '/api' }) .use(swagger()) .get('/', () => 'Hello World') .listen(3000) type App = typeof app treaty<App>('http://localhost:3000')
The use and treaty functions do not have proper type overloading.
no type error.
type error.
I’d love to contribute directly, but my TypeScript skills are lacking. I hope it gets fixed.
node_modules
bun.lockb
No response
The text was updated successfully, but these errors were encountered:
I believe it's a version mismatch. Try to make sure those three packages (elysia, @elysiajs/swagger, @elysiajs/eden) to match.
elysia
@elysiajs/swagger
@elysiajs/eden
Here's the latest version that should work (don't forget to remove node_modules and bun.lockb first:
"@elysiajs/eden": "^1.2.0", "@elysiajs/swagger": "^1.2.0", "elysia": "^1.2.10"
Sorry, something went wrong.
No branches or pull requests
What version of Elysia is running?
"@elysiajs/eden": "^1.2.0", "elysia": "^1.2.10"
What platform is your computer?
NA
What steps can reproduce the bug?
The use and treaty functions do not have proper type overloading.
What is the expected behavior?
no type error.
What do you see instead?
type error.
Additional information
I’d love to contribute directly, but my TypeScript skills are lacking. I hope it gets fixed.
Have you try removing the
node_modules
andbun.lockb
and try again yet?No response
The text was updated successfully, but these errors were encountered: