Commit 0792bfd
fix(cli): type the quickstart smoke test's generated-module import
The generated routes module has no compile-time type (it is emitted during the
test), and the cast used `Parameters<ReturnType<typeof Fastify>["register"]>[0]`,
which tsc could not match to a register overload; the PATCH response body was
also read as `unknown`. Use Fastify's own `FastifyPluginAsync` and narrow the
response body.
The fix was written before the previous push but never landed: the amend that
should have carried it was blocked by the public-repo commit guard (an unrelated
scratch file had been swept into the index), the error was swallowed, and the
pre-push typecheck gate passed because it checks the WORKING TREE, not HEAD — so
the type-broken version is what got pushed.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 4735bbd commit 0792bfd
1 file changed
Lines changed: 5 additions & 2 deletions
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
109 | 110 | | |
110 | 111 | | |
111 | 112 | | |
| 113 | + | |
| 114 | + | |
112 | 115 | | |
113 | | - | |
| 116 | + | |
114 | 117 | | |
115 | 118 | | |
116 | 119 | | |
| |||
159 | 162 | | |
160 | 163 | | |
161 | 164 | | |
162 | | - | |
| 165 | + | |
163 | 166 | | |
164 | 167 | | |
165 | 168 | | |
| |||
0 commit comments