Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
how can I specify the return type of the response of API response - Hono
H
Hono
•
2y ago
•
8 replies
FBI_kingmohbil
how can I specify the return type of the response of API response
For example I want to do something like this
type
a
=
(
c
:
any
)
=>
JSON
<{
message
:
string
}>
c
.
get
(
'/'
, ()
:
a
=>
{})
type
a
=
(
c
:
any
)
=>
JSON
<{
message
:
string
}>
c
.
get
(
'/'
, ()
:
a
=>
{})
Hono
Join
This is the official Hono discord server for the community
4,418
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Inferring the response type of a handler
H
Hono / help
7mo ago
I want to return component to API response which contsin useState.
H
Hono / help
15mo ago
[solved] return type of request handler
H
Hono / help
2y ago
How can I format response in Hono
H
Hono / help
2y ago