1
0
Fork 0
fetch-compare/src/types.ts

29 lines
540 B
TypeScript
Raw Normal View History

2022-02-16 18:50:37 +08:00
/* eslint-disable @typescript-eslint/ban-types */
2021-09-10 01:55:07 +08:00
export type ResultObject =
| string
| number
| null
| undefined
| Record<string, unknown>;
2021-09-09 23:47:04 +08:00
export type Result = Record<string, Record<string, ResultObject>>;
export interface Context {
2021-09-30 11:36:10 +08:00
fixturesPath: string;
2021-09-09 23:47:04 +08:00
fixturesURL: string;
}
export interface Platform {
run(ctx: Context, file: string): Promise<Result>;
}
export interface BrowserDriver {
path: string;
args: (port: number) => string[];
}
export interface ServerAddress {
address: string;
port: number;
base: string;
}