Skip to content

Type: type disappears from hook definition #471

@mtt-artis

Description

@mtt-artis

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions