fix(types): replace Hono with HonoBase to get better consistency of types#3580
fix(types): replace Hono with HonoBase to get better consistency of types#3580yusukebe merged 2 commits intohonojs:mainfrom
Conversation
|
@m-shaka Thanks! Great! What I find a little curious is that the type of the value returned by |
|
The behavior I commented is ideal, so if it is the correct behavior you expected, let's go with it. |
I guess this is because Line 102 in e7732a5 |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3580 +/- ##
========================================
Coverage 94.71% 94.71%
========================================
Files 158 158
Lines 9535 9535
Branches 2774 2886 +112
========================================
Hits 9031 9031
Misses 504 504 ☔ View full report in Codecov by Sentry. |
|
@m-shaka Thanks! Let's go with this. |

The author should do the following, if applicable
bun run format:fix && bun run lint:fixto format the codeI don't understand the cause well, but this change resolved #3485 (comment)
Also, I removed mutual dependency between
HonoandHonoBase:graph TD; HonoBase-->HandlerInterface; HandlerInterface-->Hono; Hono-->HonoBase;There are subclasses of
HonoBaseother thanHono, so return types ofHandlerInterfaceshould not beHono.