0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-06 02:52:05 -05:00

more JSDoc fixes

This commit is contained in:
Bartek Iwańczuk 2025-01-30 23:32:08 +01:00
parent b1bfea69ce
commit bf9e4493c6
No known key found for this signature in database
GPG key ID: 0C6BCDDC3B3AD750
2 changed files with 10 additions and 17 deletions

View file

@ -6159,21 +6159,5 @@ declare namespace Deno {
| (CreateHttpClientOptions & TlsCertifiedKeyPem),
): HttpClient;
/**
* @category Linter
*/
export interface LintRule {
create(context: any): any;
destroy?(context: any): void;
}
/**
* @category Linter
*/
export interface LintPlugin {
name: string;
rules: Record<string, LintRule>;
}
export {}; // only export exports
}

View file

@ -1343,6 +1343,7 @@ declare namespace Deno {
/**
* @category Linter
* @experimental
*/
export interface LintRule {
create(context: any): any;
@ -1351,6 +1352,7 @@ declare namespace Deno {
/**
* @category Linter
* @experimental
*/
export interface LintPlugin {
name: string;
@ -1359,15 +1361,21 @@ declare namespace Deno {
/**
* @category Linter
* @experimental
*/
export namespace lint {
interface LintFix {
/**
* @category Linter
* @experimental
*/
export interface LintFix {
range: [number, number];
text?: string;
}
/**
* @category Linter
* @experimental
*/
interface LintDiagnostic {
id: string;
@ -1380,6 +1388,7 @@ declare namespace Deno {
/**
* This API is a noop in `deno run`...
* @category Linter
* @experimental
*/
export function runPlugin(
plugin: LintPlugin,