-
-
Notifications
You must be signed in to change notification settings - Fork 619
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
RPC output type becomes never
when returning an array of interface
#2912
Comments
never
when returning an array of interface
Line 52 in 0d851b6
it works. |
cause Lines 139 to 143 in 0d851b6
|
|
|
The type in interface is not a subtype of object. |
This is most likely a specification issue. https://typescript-jp.gitbook.io/deep-dive/type-system/index-signatures |
* feat: add `DeepSimplify` type * fix(types): #2912: interfaces array's respond typed as `never` * refactor: wording `DeepSimplify` => `SimplifyDeepArray` * docs(jsdoc): add jsdoc for `Simplify`, `SimplifyDeepArray`
What version of Hono are you using?
4.4.2
What runtime/platform is your app running on?
Bun
What steps can reproduce the bug?
What is the expected behavior?
Type checking should be failed in both case.
What do you see instead?
The latter case does not report any type error.
Additional information
The problems does not reproduce when using type alias instead of interface.
The text was updated successfully, but these errors were encountered: