Skip to content

Commit

Permalink
fix(compiler): only treat unused diagnostics as warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Sep 30, 2019
1 parent 6deeb04 commit add1337
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/compiler/transpile/validate-types-worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ export function validateTypesWorker(workerCtx: d.WorkerContext, emitDtsFiles: bo
const semanticDiagnostics = loadTypeScriptDiagnostics(tsSemanticDiagnostics);
if (isDevMode) {
semanticDiagnostics.forEach(semanticDiagnostic => {
semanticDiagnostic.level = 'warn';
if (semanticDiagnostic.code === '6133') {
semanticDiagnostic.level = 'warn';
}
});
}
results.diagnostics.push(
Expand Down

0 comments on commit add1337

Please sign in to comment.