Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ export class TypeProcessor {
static createProgram(filePaths, options) {
const host = ts.createCompilerHost(options);
const roots = Array.isArray(filePaths) ? filePaths : [filePaths];
return ts.createProgram(roots, options, host);
return ts.createProgram(roots, {
...options,
noCheck: true,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I locally verified CLI invocation works much faster but still not enough on Web?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On the web it's not just hanging, but also displaying Error generating code: BridgeJSLinkError(message: "Void can\'t appear in parameters of imported JS functions"). I've also seen this in CLI previously. Definitely worth adding a test case for something like export function getCanvas(x: string): HTMLCanvasElement; used in that sample

skipLibCheck: true,
}, host);
}

/**
Expand Down