We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 399ad6a commit 74f3216Copy full SHA for 74f3216
packages/svelte2tsx/src/emitDts.ts
@@ -18,7 +18,13 @@ export async function emitDts(config: EmitDtsConfig) {
18
const likely_failed_files = result.diagnostics.filter((diagnostic) => {
19
// List of errors which hint at a failed d.ts generation
20
// https://github.com/microsoft/TypeScript/blob/main/src/compiler/diagnosticMessages.json
21
- return diagnostic.code === 2527 || (diagnostic.code >= 4000 && diagnostic.code <= 4108);
+ return (
22
+ diagnostic.code === 2527 ||
23
+ diagnostic.code === 5088 ||
24
+ diagnostic.code === 2742 ||
25
+ (diagnostic.code >= 9005 && diagnostic.code <= 9039) ||
26
+ (diagnostic.code >= 4000 && diagnostic.code <= 4108)
27
+ );
28
});
29
30
if (likely_failed_files.length > 0) {
0 commit comments