web-error-monitor
Version:
ts实现前端项目源码上传、错误信息监控
30 lines (29 loc) • 569 B
TypeScript
/** vite插件类型 */
export type VitePluginsType = {
name: string;
apply: "build";
closeBundle: () => void;
};
export type SourceMapUploaderType = {
uploadURL: string;
enable?: boolean;
};
/** 数据上报主类 options 参数 */
export type ErrorReportType = {
reportApi: string;
vue: object;
module: string;
packingMethod: string;
};
export interface ApiResponse {
code: number;
data: {
msg?: string;
};
}
export type StackType = {
column: number;
line: number;
url: string;
func: string;
};