From 224bb31d82989ea84769c75044c597618cc3e4e8 Mon Sep 17 00:00:00 2001 From: Jeet Mandaliya <45892659+sereneinserenade@users.noreply.github.com> Date: Sun, 6 Jun 2021 00:35:40 +0530 Subject: [PATCH] adding type definitions for Result in linter experimental extension --- .../demos/Experiments/Linter/extension/LinterPlugin.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/src/demos/Experiments/Linter/extension/LinterPlugin.ts b/docs/src/demos/Experiments/Linter/extension/LinterPlugin.ts index 46fc867ac..809c66015 100644 --- a/docs/src/demos/Experiments/Linter/extension/LinterPlugin.ts +++ b/docs/src/demos/Experiments/Linter/extension/LinterPlugin.ts @@ -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 = [] constructor(doc: any) { this.doc = doc