Commit ee07b85
committed
fix(types): resolve 4 tsgo errors in cli
- config-command-factory: the validations array literal triggers TS's
discriminated-union inference because the first object has no nook
field and the second one does. spec.validate() output then fails to
append because it carries a pass field that neither variant accepts.
Fix: declare an explicit Validation type so the array widens to
checkCommandInput's full param shape.
- transport-http (x3): AuthenticatedRequest declared its auth as
AuthInfo|undefined while the MCP transport expects AuthInfo with
the ?: alone carrying may-be-missing semantics. Under
exactOptionalPropertyTypes the explicit |undefined is stricter
than the upstream signature. Drop the union.
All four errors were pre-existing; surfaced during the utils → util
rename pass.1 parent 688e019 commit ee07b85
2 files changed
Lines changed: 18 additions & 3 deletions
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
99 | 109 | | |
100 | 110 | | |
101 | 111 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
37 | 42 | | |
38 | 43 | | |
39 | 44 | | |
| |||
0 commit comments