[solved] return type of request handler
Why is 1) is fine and 2) has a type problem?
1)
2)
I don't see it
1)
2)
I don't see it
.get('/foo', async (c) => {
return await c.html(<body/>)
}) .get('/bar', async (c) => {
return await render(c)
})
async function render(c) : Promise<HtlEscapedString> {
return await c.html(<body/>)
}