adding type definitions for Result in linter experimental extension

This commit is contained in:
Jeet Mandaliya 2021-06-06 00:35:40 +05:30 committed by Hans Pagel
parent f7a7d23153
commit cc696091c9

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