From b3d0b0e47d57094ff8dca8ee5d8491c1ef16a97d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Thu, 30 Jan 2025 23:49:48 +0100 Subject: [PATCH] jsdoc my old friend --- cli/tsc/dts/lib.deno.unstable.d.ts | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/cli/tsc/dts/lib.deno.unstable.d.ts b/cli/tsc/dts/lib.deno.unstable.d.ts index f59098a732ba5b..aee0997adefb66 100644 --- a/cli/tsc/dts/lib.deno.unstable.d.ts +++ b/cli/tsc/dts/lib.deno.unstable.d.ts @@ -1407,6 +1407,10 @@ declare namespace Deno { report(data: ReportData): void; } + /** + * @category Linter + * @experimental + */ export interface Rule { create(ctx: RuleContext): Record void>; destroy?(ctx: RuleContext): void; @@ -1436,7 +1440,7 @@ declare namespace Deno { * @experimental */ export interface Fix { - range: [number, number]; + range: Range; text?: string; } @@ -1444,12 +1448,12 @@ declare namespace Deno { * @category Linter * @experimental */ - interface LintDiagnostic { + export interface Diagnostic { id: string; message: string; hint?: string; - range: [number, number]; - fix?: LintFix; + range: Range; + fix?: Fix; } /** @@ -1458,10 +1462,10 @@ declare namespace Deno { * @experimental */ export function runPlugin( - plugin: LintPlugin, + plugin: Plugin, fileName: string, source: string, - ): LintDiagnostic[]; + ): Diagnostic[]; } export {}; // only export exports