mirror of
https://github.com/denoland/deno.git
synced 2025-03-06 11:18:57 -05:00
jsdoc my old friend
This commit is contained in:
parent
46e150dcb0
commit
b3d0b0e47d
1 changed files with 10 additions and 6 deletions
16
cli/tsc/dts/lib.deno.unstable.d.ts
vendored
16
cli/tsc/dts/lib.deno.unstable.d.ts
vendored
|
@ -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;
|
||||
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue