reporting-lib
Version:
A comprehensive monitoring and reporting library for web applications
11 lines • 528 B
TypeScript
/**
* 由于我们有很多内容需要上报,
* 所以我这里为了简单区分和上报
* 用type来区分上报的内容是什么
* @param {string} type 上报类型 “error” | "action" | "api" | "performance"
* @param {Object} data 上报信息
* @param {boolean} isImmediate 是否立即上报,默认为false
*/
export function report(type: string, data: Object, isImmediate?: boolean): void;
export function lazyReportCache(type: any, data: any, timeout?: number): void;
//# sourceMappingURL=index.d.ts.map