ambergristle
ambergristle
HHono
Created by dom on 4/30/2025 in #help
Passing `{...rest}` in the html`` tag
you might be able to finesse something w the jsx helper, but idk if that's meant for consumer use
8 replies
HHono
Created by dom on 4/30/2025 in #help
Passing `{...rest}` in the html`` tag
not the way you mean
8 replies
HHono
Created by dom on 4/30/2025 in #help
Passing `{...rest}` in the html`` tag
you'd need to appropriately stringify + format key/value pairs yourself
8 replies
HHono
Created by dom on 4/30/2025 in #help
Passing `{...rest}` in the html`` tag
it's just a string, so it'll behave as any template literal does
8 replies
HHono
Created by owopi on 4/23/2025 in #help
client of type unknown
I’d recommend searching this server for monorepo examples. I don’t think there are any official example repos, but the community has definitely shared projects that could be helpful references
27 replies
HHono
Created by owopi on 4/23/2025 in #help
client of type unknown
Idk that explicit type annotation is ever a good solution to this problem. It’s more of a project config issue. There might be some edge cases though
27 replies
HHono
Created by owopi on 4/23/2025 in #help
client of type unknown
27 replies
HHono
Created by owopi on 4/23/2025 in #help
client of type unknown
Hm. Seems like a tsconfig issue. It might have to do with the composite setting, or you might need to adjust base path resolution
27 replies
HHono
Created by owopi on 4/23/2025 in #help
client of type unknown
Using generated types might solve the issue, or are you doing that now?
27 replies
HHono
Created by owopi on 4/23/2025 in #help
client of type unknown
Hm. I’ve never seen that before. Where is that error being thrown? Can you share a screenshot?
27 replies
HHono
Created by owopi on 4/23/2025 in #help
client of type unknown
try const userRoutes = new Hono<AppEnv>()
27 replies
HHono
Created by owopi on 4/23/2025 in #help
client of type unknown
you're overriding the type inferred from your routes with a more-generic type that doesn't know anything about your routes at all
27 replies
HHono
Created by owopi on 4/23/2025 in #help
client of type unknown
this probably isn't helping: const userRoutes: Hono<AppEnv> = new Hono<AppEnv>()
27 replies
HHono
Created by owopi on 4/23/2025 in #help
client of type unknown
27 replies
HHono
Created by owopi on 4/23/2025 in #help
client of type unknown
you should generate the type, esp when using a monorepo
27 replies
HHono
Created by Mattèo on 4/22/2025 in #help
Got `unknown` type on res.json() on a OpenAPI RPC route
in the openapi schema you've specified that the response could be a 200 or a 400, so you need to handle each case:
if (res.status === 200) {
const typedData = await res.json()
}
if (res.status === 200) {
const typedData = await res.json()
}
3 replies
HHono
Created by Mosh Ontong on 1/24/2025 in #help
How can I stream a video in hono?
I’ve never tried, but have you taken a look at the streaming helper?
6 replies
HHono
Created by shcwork on 4/18/2025 in #help
RPC client shows 'any'
With a monorepo, you’ll want to use generated types. The link I shared about compiling the client may also help
8 replies
HHono
Created by shcwork on 4/18/2025 in #help
RPC client shows 'any'
8 replies
HHono
Created by shcwork on 4/18/2025 in #help
RPC client shows 'any'
When you do api.attendance.getShiftInfo, what are the autocomplete options?
8 replies