UNPKG

@phenixrts/sdk

Version:
33 lines (32 loc) 2.1 kB
import INetworkInformation from './INetworkInformation'; interface IGlobalScope { readonly FormData: typeof FormData; readonly HTMLVideoElement: typeof HTMLVideoElement; readonly MediaStream: typeof MediaStream; readonly MediaStreamTrack: typeof MediaStreamTrack; readonly RTCPeerConnection: typeof RTCPeerConnection; readonly RTCSessionDescription: typeof RTCSessionDescription; readonly RTCIceCandidate: typeof RTCIceCandidate; readonly URL: typeof URL; readonly URLSearchParams: typeof URLSearchParams; readonly documentIsHidden: boolean; readonly navigatorConnection: INetworkInformation | undefined; readonly locationHostname: string; readonly locationSearch: string; readonly navigatorIsOnLine: boolean; readonly pageLoadTime: number | undefined; readonly addDocumentEventListener: (type: string, listener: (event: Event) => void, options?: boolean | AddEventListenerOptions) => void; readonly addWindowEventListener: (type: string, listener: (event: Event) => void, options?: boolean | AddEventListenerOptions) => void; readonly documentCreateElement: <Element extends HTMLElement>(tag: string) => Element; readonly documentHasFocus: () => boolean; readonly clearInterval: (id?: number | undefined) => void; readonly clearTimeout: (id?: number | undefined) => void; readonly documentQuerySelector: <Element extends HTMLElement>(selector: string) => Element | null; readonly fetch: (input: string | URL | Request, init?: RequestInit) => Promise<Response>; readonly queueMicrotask: (microTask: () => void) => void; readonly removeDocumentEventListener: (type: string, listener: (event: Event) => void, options?: boolean | AddEventListenerOptions) => void; readonly removeWindowEventListener: (type: string, listener: (event: Event) => void, options?: boolean | AddEventListenerOptions) => void; readonly setInterval: (handler: string | Function, timeout?: number) => number; readonly setTimeout: (handler: string | Function, timeout?: number) => number; } export default IGlobalScope;