Sakib
Sakib
Explore posts from servers
HHono
Created by Sakib on 5/20/2024 in #help
Type 'Hono<App {...}>' does not satisfy the constraint 'Hono<any, any, any> Property '#private' in t
// On /web-ui/src/lib/hc.ts
import { AppType } from "@api/routes";
import { hc } from "hono/client";

const client = hc<AppType>("http://localhost:8787/");
import { AppType } from "@api/routes";
import { hc } from "hono/client";

const client = hc<AppType>("http://localhost:8787/");
AppType showing type error Type: Hono<App, { "/users": { $get: { input: {}; output: {}; outputFormat: "json"; status: 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 226 | 300 | 301 | 302 | 303 | 304 | ... 44 more ... | -1; }; }; "/users/test": { ...; }; }, "/">' does not satisfy the constraint Hono. 'Hono<any, any, any>'
Property '#private' in type 'Hono' refers to a different member that cannot be accessed from within type 'Hono'.ts(2344)
3 replies