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;
|
report(data: ReportData): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @category Linter
|
||||||
|
* @experimental
|
||||||
|
*/
|
||||||
export interface Rule {
|
export interface Rule {
|
||||||
create(ctx: RuleContext): Record<string, (node: unknown) => void>;
|
create(ctx: RuleContext): Record<string, (node: unknown) => void>;
|
||||||
destroy?(ctx: RuleContext): void;
|
destroy?(ctx: RuleContext): void;
|
||||||
|
@ -1436,7 +1440,7 @@ declare namespace Deno {
|
||||||
* @experimental
|
* @experimental
|
||||||
*/
|
*/
|
||||||
export interface Fix {
|
export interface Fix {
|
||||||
range: [number, number];
|
range: Range;
|
||||||
text?: string;
|
text?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1444,12 +1448,12 @@ declare namespace Deno {
|
||||||
* @category Linter
|
* @category Linter
|
||||||
* @experimental
|
* @experimental
|
||||||
*/
|
*/
|
||||||
interface LintDiagnostic {
|
export interface Diagnostic {
|
||||||
id: string;
|
id: string;
|
||||||
message: string;
|
message: string;
|
||||||
hint?: string;
|
hint?: string;
|
||||||
range: [number, number];
|
range: Range;
|
||||||
fix?: LintFix;
|
fix?: Fix;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1458,10 +1462,10 @@ declare namespace Deno {
|
||||||
* @experimental
|
* @experimental
|
||||||
*/
|
*/
|
||||||
export function runPlugin(
|
export function runPlugin(
|
||||||
plugin: LintPlugin,
|
plugin: Plugin,
|
||||||
fileName: string,
|
fileName: string,
|
||||||
source: string,
|
source: string,
|
||||||
): LintDiagnostic[];
|
): Diagnostic[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export {}; // only export exports
|
export {}; // only export exports
|
||||||
|
|
Loading…
Add table
Reference in a new issue