Skip to content

Commit

Permalink
jsdoc my old friend
Browse files Browse the repository at this point in the history
  • Loading branch information
bartlomieju committed Jan 30, 2025
1 parent 46e150d commit b3d0b0e
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions cli/tsc/dts/lib.deno.unstable.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1407,6 +1407,10 @@ declare namespace Deno {
report(data: ReportData): void;
}

/**
* @category Linter
* @experimental
*/
export interface Rule {
create(ctx: RuleContext): Record<string, (node: unknown) => void>;
destroy?(ctx: RuleContext): void;
Expand Down Expand Up @@ -1436,20 +1440,20 @@ declare namespace Deno {
* @experimental
*/
export interface Fix {
range: [number, number];
range: Range;
text?: string;
}

/**
* @category Linter
* @experimental
*/
interface LintDiagnostic {
export interface Diagnostic {
id: string;
message: string;
hint?: string;
range: [number, number];
fix?: LintFix;
range: Range;
fix?: Fix;
}

/**
Expand All @@ -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
Expand Down

0 comments on commit b3d0b0e

Please sign in to comment.