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:
parent
b1bfea69ce
commit
bf9e4493c6
2 changed files with 10 additions and 17 deletions
16
cli/tsc/dts/lib.deno.ns.d.ts
vendored
16
cli/tsc/dts/lib.deno.ns.d.ts
vendored
|
@ -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
|
||||
}
|
||||
|
|
11
cli/tsc/dts/lib.deno.unstable.d.ts
vendored
11
cli/tsc/dts/lib.deno.unstable.d.ts
vendored
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue