UNPKG

fuse-box-typechecker

Version:

Fuse-Box type checker plugin for fusebox 4.0.0 ++

22 lines 656 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getSemanticDiagnostics = void 0; function getSemanticDiagnostics(options, program) { return program .getSemanticDiagnostics() .filter(errors => { if (options.skipTsErrors && options.skipTsErrors.indexOf(errors.code) !== -1) { return false; } else { return true; } }) .map(obj => { obj._type = 'semantic'; return obj; }); } exports.getSemanticDiagnostics = getSemanticDiagnostics; //# sourceMappingURL=getSemanticDiagnostics.js.map