Skip to content
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

Type: type disappears from hook definition #471

Open
mtt-artis opened this issue Jan 16, 2025 · 0 comments
Open

Type: type disappears from hook definition #471

mtt-artis opened this issue Jan 16, 2025 · 0 comments

Comments

@mtt-artis
Copy link
Contributor

What is the type of issue?

No response

What is the issue?

Hello 👋

The type hook was previously useful for defining response content types in the swagger plugin. Although it still works, there is now a lack of IntelliSense support since it has disappeared from the LocalHook definition (replaced by parse ?).

https://github.com/elysiajs/elysia/blob/main/src/types.ts#L1166](https://github.com/elysiajs/elysia/blob/main/src/types.ts#L1166)

This change has made it more difficult to easily specify response content types, potentially impacting API documentation accuracy and developer experience.

Tell me if this is more an issue for the swagger pluggin

Where did you find it?

No response

@mtt-artis mtt-artis changed the title Type: type hook disapear from hook definition Type: type disapear from hook definition Jan 16, 2025
@mtt-artis mtt-artis changed the title Type: type disapear from hook definition Type: type disappears from hook definition Jan 16, 2025
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

No branches or pull requests

1 participant