Commit 27ecafa
committed
Replace dtslint with tsd to test .d.ts files (#1051)
This patch replaces `dtslint` with `tsd` for testing `.d.ts` files, ensuring improved type validation and updated test coverage, including:
1. Added a new test file, `index.test-d.ts`, with comprehensive type assertions using `tsd`.
2. Removed existing test file, `index.d.ts` , `index.d.ts`, `test.ts`, `tsconfig.json` and `tslint.json` that is no longer needed.
3. Removed `dtslint` from `dependencies` for `package.json`.
4. Added `tsd` and `@types/node` into `devDependencies` for `package.json`.
After this patch:
1. Running `npm test` will test for `.d.ts` files.
2. Running `npm install` will generate interfaces for `.d.ts` files.
Fix: #10501 parent d31f20d commit 27ecafa
7 files changed
Lines changed: 403 additions & 753 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
| 20 | + | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
| 26 | + | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
| |||
45 | 44 | | |
46 | 45 | | |
47 | 46 | | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| |||
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
73 | | - | |
74 | 74 | | |
75 | | - | |
76 | 75 | | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
80 | 81 | | |
81 | 82 | | |
82 | | - | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
98 | 101 | | |
99 | 102 | | |
100 | 103 | | |
| |||
This file was deleted.
0 commit comments