-
Notifications
You must be signed in to change notification settings - Fork 99
Expand file tree
/
Copy pathIChecker.ts
More file actions
37 lines (31 loc) · 983 Bytes
/
IChecker.ts
File metadata and controls
37 lines (31 loc) · 983 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import { eRuleLevel } from "../common/config/IConfig.js";
import { IBaselineReport } from "../common/engine/IReport.js";
export enum eAssertResult {
ERROR = -1,
PASS = 0,
BASELINE_MISMATCH = 1,
FAIL = 2
}
export interface ILogger {
debug: (...args: any[]) => void
info: (...args: any[]) => void,
error: (...args: any[]) => void,
warn: (...args: any[]) => void,
create: (...args: any[]) => void
}
export interface ICheckerError {
details: any
}
export interface ICheckerResult {
// reference to a webdriver object if Selenium WebDriver was used for the scan
webdriver?: any,
// reference to a puppeteer object if Puppeteer was used for the scan
// Puppeteer is used for string, URL, and file scans
puppeteer?: any,
report: ReportResult;
}
export type ICheckerReportCounts = {
[key in eRuleLevel]?: number
}
export type ICheckerReport = IBaselineReport
export type ReportResult = ICheckerReport | ICheckerError