spy-client
Version:
spy client
29 lines (28 loc) • 668 B
TypeScript
export interface ErrorHandlerData {
info: {
[propName: string]: any;
msg: string;
};
group: string;
dim?: {
[propName: string]: any;
};
}
export interface ErrorConf {
sample: number;
group: string;
handler?: (data: ErrorHandlerData) => boolean | void | undefined;
}
export interface WhiteScreenErrorConf extends ErrorConf {
timeout: number;
selector: string;
subSelector: string;
}
export interface SpyHeadConf {
pid: string;
lid?: string;
logServer?: string;
jsError: ErrorConf;
resourceError: ErrorConf;
whiteScreenError: WhiteScreenErrorConf;
}