Commit 271de60
committed
fix(types): add explicit connex-types to tsconfig for TS5 compatibility
TypeScript 5.x no longer auto-emits /// <reference types="..." />
directives in declaration output when the package is listed under
tsconfig types[]. Each package now explicitly declares its ambient
type dependencies:
- connex-driver/tsconfig: add @vechain/connex-types alongside
connex-framework/dist/driver-interface
- connex/tsconfig: add @vechain/connex-types and
connex-framework/dist/driver-interface
- connex/package.json: add @vechain/connex-types as a direct dep
Constraint: TypeScript 4.x emitted reference directives automatically
Rejected: postbuild script to prepend directives | less clean than
tsconfig-level declaration1 parent 206704e commit 271de60
4 files changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| |||
0 commit comments