adding type definitions for Result in linter experimental extension
This commit is contained in:
committed by
Hans Pagel
parent
f7a7d23153
commit
cc696091c9
@@ -1,8 +1,14 @@
|
|||||||
// @ts-nocheck
|
interface Result {
|
||||||
|
message: string,
|
||||||
|
from: number,
|
||||||
|
to: number,
|
||||||
|
fix?: null
|
||||||
|
}
|
||||||
|
|
||||||
export default class LinterPlugin {
|
export default class LinterPlugin {
|
||||||
protected doc
|
protected doc
|
||||||
|
|
||||||
private results = []
|
private results: Array<Result> = []
|
||||||
|
|
||||||
constructor(doc: any) {
|
constructor(doc: any) {
|
||||||
this.doc = doc
|
this.doc = doc
|
||||||
|
|||||||
Reference in New Issue
Block a user