Answer Overflow Logo
Change Theme
Search Answer Overflow
GitHub
Add Your Server
Login
Home
Popular
Topics
Gaming
Programming
FBI_kingmohbil
Posts
Comments
H
Hono
•
Created by FBI_kingmohbil on 8/24/2024 in
#help
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
=>
{})
9 replies