Skip to content

Commit ddb2d04

Browse files
committed
Enable verbatimModuleSyntax (during checks) for explicit import/export types
https://www.typescriptlang.org/tsconfig/#verbatimModuleSyntax Only enabling this for type checks right now, so that src can stay clean. Disabling at build/runtime because there's a weird interaction with extensionless that fails to omit type import when doing a path rewrite. Also ts-jest does not support this yet either. Future could change this chain without affecting src code.
1 parent e630d92 commit ddb2d04

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tsconfig.check.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
44
"noEmit": true,
5+
"verbatimModuleSyntax": true,
56
"incremental": false
67
}
78
}

0 commit comments

Comments
 (0)