adding type definitions for Result in linter experimental extension

This commit is contained in:
Jeet Mandaliya 2021-06-06 00:35:40 +05:30
parent 6212cb46d1
commit 224bb31d82

View File

@ -1,8 +1,14 @@
// @ts-nocheck
interface Result {
message: string,
from: number,
to: number,
fix?: null
}
export default class LinterPlugin {
protected doc
private results = []
private results: Array<Result> = []
constructor(doc: any) {
this.doc = doc