Files
app.ts
What you'll learn
- Chain a sub-app's routes so it contributes them to the type of the app that mounts it
- Chain route() calls and export typeof the chain's result, with basePath() in the type too
- Compute ReturnType<typeof hc<AppType>> once in a client module, the guide's compile-before-use pattern
Press Run tests to start the app. Its log appears here.Tests
- client.spec.tsrun to see its tests