UNPKG

@xtrek/ts-migrate-plugins

Version:

Set of codemods, which are doing transformation of js/jsx to ts/tsx

14 lines 578 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isDiagnostic = exports.isDiagnosticWithLinePosition = void 0; function isDiagnosticWithLinePosition(diagnostic) { return (diagnostic != null && diagnostic.start !== undefined && diagnostic.length !== undefined); } exports.isDiagnosticWithLinePosition = isDiagnosticWithLinePosition; function isDiagnostic(diagnostic) { return diagnostic != null && !isDiagnosticWithLinePosition(diagnostic); } exports.isDiagnostic = isDiagnostic; //# sourceMappingURL=type-guards.js.map