Files
app.ts
What you'll learn
- Chain routes on the Hono instance so typeof app carries every path, method, input and response
- Export AppType and build a typed client from it with hc(), sharing nothing but the type
- Read the error a client shows when the app it was built from was not chained
Press Run tests to start the app. Its log appears here.Tests
- client.spec.tsrun to see its tests