1 | import { Problem } from '@hint/utils-types';
|
2 | export type { UserConfig } from '@hint/utils';
|
3 | export declare type CreateAnalyzerOptions = {
|
4 | formatters?: string[];
|
5 | hints?: string[];
|
6 | watch?: boolean;
|
7 | };
|
8 | export declare type Target = {
|
9 | url: string | URL;
|
10 | content?: string;
|
11 | };
|
12 | export declare type Endpoint = string | URL | Target;
|
13 | export declare type AnalyzerResult = {
|
14 | url: string;
|
15 | problems: Problem[];
|
16 | };
|
17 | export declare type AnalyzerTargetStart = {
|
18 | url: string;
|
19 | };
|
20 | export declare type AnalyzerTargetEnd = AnalyzerTargetStart & {
|
21 | problems: Problem[];
|
22 | };
|
23 | export declare type AnalyzerTargetUpdate = AnalyzerTargetStart & {
|
24 | message: string;
|
25 | resource?: string;
|
26 | };
|
27 | export 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 |
|
\ | No newline at end of file |