Commit 42d8941
committed
test(service-datasource): type the harness app off the adapter's own accessor
`tsc --noEmit` reds on a hand-written `{ fetch: (req: Request) => Promise<Response> }`:
Hono's `fetch` takes an env and an execution context after the request, so the
narrower signature is a type error rather than a simplification.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ARYe3yQTQCUFm5qPYNgKaJ1 parent 2c7971a commit 42d8941
1 file changed
Lines changed: 7 additions & 1 deletion
File tree
- packages/services/service-datasource/src/__tests__
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | | - | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
232 | 238 | | |
233 | 239 | | |
234 | 240 | | |
| |||
0 commit comments