UNPKG

@aligov/retcodelog

Version:

retcode log上报npm包,适用于 browser|nodejs|weex|E应用

35 lines (34 loc) 828 B
export declare type IRetcodeRequestDefine = (url: string) => void; export interface IKeyValuePairs { [key: string]: string | number | boolean; } export interface ISamplePairs { [key: string]: number; } export interface ILogConfig { appName?: string; spmId: string; imgUrl?: string; request?: IRetcodeRequestDefine; nick?: string; tag?: string; uid?: string | number; sample?: number; retCode?: ISamplePairs; errMsgFilter?: (msg: string) => boolean | RegExp | string; } export interface ILogErrorEventDefine { message: string; lineno?: number; colno?: number; filename?: string; stack?: string; } export interface ILogRetcodeApiDefine { api: string; issuccess: boolean; msg?: string; detail?: string; traceId?: string; delay?: number; }