Answer Overflow Logo
Change Theme
Search Answer Overflow
GitHub
Add Your Server
Login
Home
Popular
Topics
Gaming
Programming
Ayoub
Posts
Comments
H
Hono
•
Created by Ayoub on 2/9/2025 in
#help
Extract routes from hono definition
for caching and manually invalidate cache http responses
8 replies
H
Hono
•
Created by Ayoub on 2/9/2025 in
#help
Extract routes from hono definition
no I already use the RPC client for my frontend but what I want now is a specific use case in my backend but I found the solution :
type
Routes
=
ExtractSchema
<
typeof
app>;
const
fn
=
(
route
: keyof
Routes
)
=>
{};
type
Routes
=
ExtractSchema
<
typeof
app>;
const
fn
=
(
route
: keyof
Routes
)
=>
{};
8 replies