beyond
Version:
The Full Stack Universal Typescript Framework
45 lines (36 loc) • 977 B
JavaScript
const ts = require('typescript');
module.exports = class {
get file() {
return this.
}
get message() {
return this.
}
get line() {
return this.
}
get character() {
return this.
}
constructor(diagnostic) {
this.
if (!diagnostic.file) return;
this.
const position = diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start);
this.
this.
}
toJSON() {
return {
file: this.
message: this.
html: this.
line: this.
character: this.
}
}
}