Skip to content

Commit bc61038

Browse files
TS2Swift: Skip type checks when translating TS -> Swift (#567)
1 parent d35ef58 commit bc61038

File tree

1 file changed

+5
-1
lines changed
  • Plugins/BridgeJS/Sources/TS2Swift/JavaScript/src

1 file changed

+5
-1
lines changed

Plugins/BridgeJS/Sources/TS2Swift/JavaScript/src/processor.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ export class TypeProcessor {
2727
static createProgram(filePaths, options) {
2828
const host = ts.createCompilerHost(options);
2929
const roots = Array.isArray(filePaths) ? filePaths : [filePaths];
30-
return ts.createProgram(roots, options, host);
30+
return ts.createProgram(roots, {
31+
...options,
32+
noCheck: true,
33+
skipLibCheck: true,
34+
}, host);
3135
}
3236

3337
/**

0 commit comments

Comments
 (0)