cwj_monitoring
Version:
基于 JS 适用Web端的插件,为前端项目提供【 行为、性能、异常 】监控手段
26 lines (20 loc) • 489 B
TypeScript
type Plugin = 'error' | 'click' | 'performance' | 'router';
//初始化时传入的参数
interface Options {
url: string;
max?: number;
time?: number;
plugin?: Plugin[];
data?: any;
}
declare enum TYPES {
ERROR = "error",
CLICK = "click",
PERFORMANCE = "performance",
ROUTER = "router"
}
declare const init: (options: Options) => void;
declare const _default: {
init: (options: Options) => void;
};
export { TYPES, _default as default, init };