0
0
Fork 0
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:
Bartek Iwańczuk 2024-12-04 03:02:55 +01:00
parent 052a035c23
commit a1e590dc66
No known key found for this signature in database
GPG key ID: 0C6BCDDC3B3AD750

View file

@ -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>;
}
}