H
Hono•4w ago
Cas Bomans

The hc function returns an unkown type

When I hover over the hc function I see this typing:
hc<Hono<BlankEnv, BlankSchema | MergeSchemaPath<BlankSchema, "/api/auth">, "/api/">>(baseUrl: string, options?: ClientRequestOptions): unknown
hc<Hono<BlankEnv, BlankSchema | MergeSchemaPath<BlankSchema, "/api/auth">, "/api/">>(baseUrl: string, options?: ClientRequestOptions): unknown
The type of the route seems to be correct, what am doing wrong?
3 Replies
Arjix
Arjix•4w ago
can you provide a minimal repro?
ambergristle
ambergristle•4w ago
@Cas Bomans there are a ton of discussions on the server RE unknown type w the client please take some time to look through those
Cas Bomans
Cas BomansOP•4w ago
I already figured it out, i had to chain my endpoints to make it work. Thanks for the reply!😀

Did you find this page helpful?