Repository navigation
Commit a2ba4a6
authored
fix(types): declare record output and input as members, not base type arguments (#6645)
microsoft/TypeScript#64372 stops base type arguments from reading the members of the interface being declared, so z.json(), whose record branch refers back to the JSON schema, reported TS5115 and inferred a record input of any.1 parent c42596b commit a2ba4a6
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3218 | 3218 | | |
3219 | 3219 | | |
3220 | 3220 | | |
3221 | | - | |
| 3221 | + | |
3222 | 3222 | | |
| 3223 | + | |
| 3224 | + | |
| 3225 | + | |
3223 | 3226 | | |
3224 | 3227 | | |
3225 | 3228 | | |
| |||
0 commit comments