UNPKG

spy-client

Version:

spy client

37 lines (36 loc) 876 B
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; } export interface SpyHeadUpdateConf { pid?: string; lid?: string; logServer?: string; jsError?: ErrorConf; resourceError?: ErrorConf; whiteScreenError?: WhiteScreenErrorConf; }