Skip to content

Commit d9d9c54

Browse files
committed
Running unit tests with TypeScript 5.8
1 parent 0f989fe commit d9d9c54

5 files changed

Lines changed: 12 additions & 6 deletions

File tree

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@
6767
"typescript_5.4": "npm:typescript@5.4",
6868
"typescript_5.5": "npm:typescript@5.5",
6969
"typescript_5.6": "npm:typescript@5.6",
70-
"typescript_5.7": "npm:typescript@5.7"
70+
"typescript_5.7": "npm:typescript@5.7",
71+
"typescript_5.8": "npm:typescript@5.8"
7172
},
7273
"engines": {
7374
"node": ">=16.0.0"

test/spec/ts-defs/010.tstest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
}
66
*/
77

8-
import { SuperConstructorInvokeInfo } from 'polytype';
8+
import type { SuperConstructorInvokeInfo } from 'polytype';

test/spec/ts-defs/020.tstest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
}
66
*/
77

8-
import { SuperConstructorInvokeInfo } from 'polytype/global';
8+
import type { SuperConstructorInvokeInfo } from 'polytype/global';

test/spec/ts-defs/100.tstest

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,17 @@
77
class A
88
{
99
public constructor(n: number, s?: string)
10-
{ }
10+
{
11+
void null;
12+
}
1113
}
1214

1315
abstract class B
1416
{
1517
public constructor(o: object)
16-
{ }
18+
{
19+
void null;
20+
}
1721
}
1822

1923
void

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"moduleResolution": "Node16",
77
"noUncheckedSideEffectImports": true,
88
"strict": true,
9-
"target": "ES2020"
9+
"target": "ES2020",
10+
"verbatimModuleSyntax": true
1011
},
1112
"include": [
1213
"example",

0 commit comments

Comments
 (0)