UNPKG

1.05 kBTypeScriptView Raw
1import { Problem } from '@hint/utils-types';
2export type { UserConfig } from '@hint/utils';
3export declare type CreateAnalyzerOptions = {
4 formatters?: string[];
5 hints?: string[];
6 watch?: boolean;
7};
8export declare type Target = {
9 url: string | URL;
10 content?: string;
11};
12export declare type Endpoint = string | URL | Target;
13export declare type AnalyzerResult = {
14 url: string;
15 problems: Problem[];
16};
17export declare type AnalyzerTargetStart = {
18 url: string;
19};
20export declare type AnalyzerTargetEnd = AnalyzerTargetStart & {
21 problems: Problem[];
22};
23export declare type AnalyzerTargetUpdate = AnalyzerTargetStart & {
24 message: string;
25 resource?: string;
26};
27export declare type AnalyzeOptions = {
28 language?: string;
29 targetEndCallback?: (targetEvent: AnalyzerTargetEnd) => Promise<void> | void;
30 targetStartCallback?: (targetEvent: AnalyzerTargetStart) => Promise<void> | void;
31 updateCallback?: (update: AnalyzerTargetUpdate) => Promise<void> | void;
32};
33//# sourceMappingURL=analyzer.d.ts.map
\No newline at end of file