Commit 9c05707
authored
fix: restore tsconfig for typecheck, fix wrap() type (#19)
## Summary
- Restore `module` and `moduleResolution` in tsconfig.json — tshy
overrides these during build, but `tsc --noEmit` needs them for
typecheck
- Fix `wrap()` generic from `(...args: unknown[]) => unknown` to
`(...args: any[]) => any` so typed functions can be wrapped without
casting
## Test plan
- [ ] `pnpm -F agentcrumbs typecheck` passes
- [ ] `pnpm -F agentcrumbs build` passes
- [ ] CI typecheck passes3 files changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
| 218 | + | |
| 219 | + | |
219 | 220 | | |
220 | 221 | | |
221 | 222 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
11 | | - | |
12 | | - | |
| 13 | + | |
13 | 14 | | |
0 commit comments