Skip to content

Commit 74b2dad

Browse files
Avoid TS error
1 parent a009b55 commit 74b2dad

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

test/index.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// @ts-expect-error: We cannot enable allowImportingTsExtensions
2+
// because our TS version does not support it
13
import { removeTypes } from '../src/index.ts';
24

35
describe('removeTypes', () => {

tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"target": "es2020",
44
"module": "es2020",
55
"removeComments": true,
6-
"allowImportingTsExtensions": true,
76

87
"strict": true,
98
"noUnusedLocals": true,

0 commit comments

Comments
 (0)