/** * @author Cheng */ interface BrowserInfo { engine: string; // webkit gecko presto trident engineVs: string; platform: string; // desktop mobile supporter: string; // chrome safari firefox opera iexplore edge supporterVs: string; system: string; // windows macos linux android ios systemVs: string; shell: string; // wechat qq uc 360 2345 sougou liebao maxthon shellVs: string; appleType: string; colorScheme: string; } interface DefineListeners { [key: string]: any; } /** * @author Cheng */ declare global { interface PerformanceEntry { readonly processingStart?: DOMHighResTimeStamp; readonly processingEnd?: DOMHighResTimeStamp; readonly value?: number; } interface NetworkInformation { readonly rtt?: number; readonly downlink?: number; readonly effectiveType?: string; readonly saveData?: boolean; } interface Navigator { readonly connection?: NetworkInformation; } interface HTMLLinkElement { onreadystatechange: any; readyState: any; sheet: any; } interface HTMLScriptElement { readyState: any; onreadystatechange: any; parentNode: any; } interface Console { [key: string]: any; } interface ErrorEvent { time?: number; readonly message: string; readonly filename: string; // Deprecated, but still supported. fileName?: string; readonly lineno: number; // Deprecated, but still supported. line?: number; readonly colno: number; // Deprecated, but still supported. column?: number; stack?: string; name?: string; } interface URLSearchParams { entries: () => IterableIterator<[string, string]>; } interface Window { // VAR MAZEY_DEFINE_LISTENERS?: DefineListeners; MAZEY_BROWSER_INFO?: BrowserInfo; // LIB $?: any; jQuery?: any; } } export {};