@sdc-monitor/demo
Version:
<div align="center"> <a href="#" target="_blank"> <img src="https://i.loli.net/2021/07/28/EvPwd4NjVH3tBfO.jpg" alt="mito-logo" height="90"> </a> <p>A Lightweight SDK For Monitor Web</p>
48 lines (38 loc) • 846 B
text/typescript
import { Severity } from '@sdc-monitor/utils'
import { HttpCollectedType } from './http'
export type voidFun = () => void
export interface IAnyObject {
[key: string]: any
}
export interface ResourceErrorTarget {
src?: string
href?: string
localName?: string
}
export interface MITOXMLHttpRequest extends XMLHttpRequest {
[key: string]: any
httpCollect?: HttpCollectedType
}
export interface ErrorStack {
args: any[]
func: string
column: number
line: number
url: string
}
export interface WxParsedErrorType {
message: string
name: string
stack: ErrorStack[]
}
export type TNumStrObj = number | string | object
export interface LocalStorageValue<T = any> {
expireTime?: number
value: T | string
}
export interface LogTypes {
message?: TNumStrObj
tag?: TNumStrObj
level?: Severity
ex?: Error | any
}