mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 17:34:47 -05:00
add basic type decl
This commit is contained in:
parent
052a035c23
commit
a1e590dc66
1 changed files with 18 additions and 0 deletions
18
cli/tsc/dts/lib.deno.ns.d.ts
vendored
18
cli/tsc/dts/lib.deno.ns.d.ts
vendored
|
@ -6160,4 +6160,22 @@ declare namespace Deno {
|
|||
): HttpClient;
|
||||
|
||||
export {}; // only export exports
|
||||
|
||||
export interface LintRuleContext {
|
||||
report(
|
||||
data: { span: { start: number; end: number }; message: string },
|
||||
): void;
|
||||
source(): string;
|
||||
}
|
||||
|
||||
export interface LintRule {
|
||||
// TODO(bartlomieju): proper return type
|
||||
create(context: LintRuleContext);
|
||||
destroy?(context: LintRuleContext): void;
|
||||
}
|
||||
|
||||
export interface LintPlugin {
|
||||
name: string;
|
||||
rules: Record<string, LintRule>;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue