mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-08 08:14:51 -06:00
Port generated lib files
This commit is contained in:
parent
014845a637
commit
ea9670de43
320
src/lib/dom.generated.d.ts
vendored
320
src/lib/dom.generated.d.ts
vendored
@ -78,8 +78,8 @@ interface ConstrainLongRange extends LongRange {
|
||||
}
|
||||
|
||||
interface ConstrainVideoFacingModeParameters {
|
||||
exact?: string | string[];
|
||||
ideal?: string | string[];
|
||||
exact?: VideoFacingModeEnum | VideoFacingModeEnum[];
|
||||
ideal?: VideoFacingModeEnum | VideoFacingModeEnum[];
|
||||
}
|
||||
|
||||
interface CustomEventInit extends EventInit {
|
||||
@ -308,7 +308,7 @@ interface MSAudioSendSignal {
|
||||
}
|
||||
|
||||
interface MSConnectivity {
|
||||
iceType?: string;
|
||||
iceType?: MSIceType;
|
||||
iceWarningFlags?: MSIceWarningFlags;
|
||||
relayAddress?: MSRelayAddress;
|
||||
}
|
||||
@ -318,11 +318,11 @@ interface MSCredentialFilter {
|
||||
}
|
||||
|
||||
interface MSCredentialParameters {
|
||||
type?: string;
|
||||
type?: MSCredentialType;
|
||||
}
|
||||
|
||||
interface MSCredentialSpec {
|
||||
type?: string;
|
||||
type?: MSCredentialType;
|
||||
id?: string;
|
||||
}
|
||||
|
||||
@ -333,7 +333,7 @@ interface MSDelay {
|
||||
|
||||
interface MSDescription extends RTCStats {
|
||||
connectivity?: MSConnectivity;
|
||||
transport?: string;
|
||||
transport?: RTCIceProtocol;
|
||||
networkconnectivity?: MSNetworkConnectivityInfo;
|
||||
localAddr?: MSIPAddressInfo;
|
||||
remoteAddr?: MSIPAddressInfo;
|
||||
@ -457,11 +457,11 @@ interface MSTransportDiagnosticsStats extends RTCStats {
|
||||
numConsentRespReceived?: number;
|
||||
interfaces?: MSNetworkInterfaceType;
|
||||
baseInterface?: MSNetworkInterfaceType;
|
||||
protocol?: string;
|
||||
protocol?: RTCIceProtocol;
|
||||
localInterface?: MSNetworkInterfaceType;
|
||||
localAddrType?: string;
|
||||
remoteAddrType?: string;
|
||||
iceRole?: string;
|
||||
localAddrType?: MSIceAddrType;
|
||||
remoteAddrType?: MSIceAddrType;
|
||||
iceRole?: RTCIceRole;
|
||||
rtpRtcpMux?: boolean;
|
||||
allocationTimeInMs?: number;
|
||||
msRtcEngineVersion?: string;
|
||||
@ -534,7 +534,7 @@ interface MediaEncryptedEventInit extends EventInit {
|
||||
}
|
||||
|
||||
interface MediaKeyMessageEventInit extends EventInit {
|
||||
messageType?: string;
|
||||
messageType?: MediaKeyMessageType;
|
||||
message?: ArrayBuffer;
|
||||
}
|
||||
|
||||
@ -542,8 +542,8 @@ interface MediaKeySystemConfiguration {
|
||||
initDataTypes?: string[];
|
||||
audioCapabilities?: MediaKeySystemMediaCapability[];
|
||||
videoCapabilities?: MediaKeySystemMediaCapability[];
|
||||
distinctiveIdentifier?: string;
|
||||
persistentState?: string;
|
||||
distinctiveIdentifier?: MediaKeysRequirement;
|
||||
persistentState?: MediaKeysRequirement;
|
||||
}
|
||||
|
||||
interface MediaKeySystemMediaCapability {
|
||||
@ -667,7 +667,7 @@ interface MutationObserverInit {
|
||||
}
|
||||
|
||||
interface NotificationOptions {
|
||||
dir?: string;
|
||||
dir?: NotificationDirection;
|
||||
lang?: string;
|
||||
body?: string;
|
||||
tag?: string;
|
||||
@ -766,8 +766,8 @@ interface PushSubscriptionOptionsInit {
|
||||
|
||||
interface RTCConfiguration {
|
||||
iceServers?: RTCIceServer[];
|
||||
iceTransportPolicy?: string;
|
||||
bundlePolicy?: string;
|
||||
iceTransportPolicy?: RTCIceTransportPolicy;
|
||||
bundlePolicy?: RTCBundlePolicy;
|
||||
peerIdentity?: string;
|
||||
}
|
||||
|
||||
@ -781,7 +781,7 @@ interface RTCDtlsFingerprint {
|
||||
}
|
||||
|
||||
interface RTCDtlsParameters {
|
||||
role?: string;
|
||||
role?: RTCDtlsRole;
|
||||
fingerprints?: RTCDtlsFingerprint[];
|
||||
}
|
||||
|
||||
@ -789,7 +789,7 @@ interface RTCIceCandidateAttributes extends RTCStats {
|
||||
ipAddress?: string;
|
||||
portNumber?: number;
|
||||
transport?: string;
|
||||
candidateType?: string;
|
||||
candidateType?: RTCStatsIceCandidateType;
|
||||
priority?: number;
|
||||
addressSourceUrl?: string;
|
||||
}
|
||||
@ -801,10 +801,10 @@ interface RTCIceCandidateDictionary {
|
||||
foundation?: string;
|
||||
priority?: number;
|
||||
ip?: string;
|
||||
protocol?: string;
|
||||
protocol?: RTCIceProtocol;
|
||||
port?: number;
|
||||
type?: string;
|
||||
tcpType?: string;
|
||||
type?: RTCIceCandidateType;
|
||||
tcpType?: RTCIceTcpCandidateType;
|
||||
relatedAddress?: string;
|
||||
relatedPort?: number;
|
||||
msMTurnSessionId?: string;
|
||||
@ -825,7 +825,7 @@ interface RTCIceCandidatePairStats extends RTCStats {
|
||||
transportId?: string;
|
||||
localCandidateId?: string;
|
||||
remoteCandidateId?: string;
|
||||
state?: string;
|
||||
state?: RTCStatsIceCandidatePairState;
|
||||
priority?: number;
|
||||
nominated?: boolean;
|
||||
writable?: boolean;
|
||||
@ -838,7 +838,7 @@ interface RTCIceCandidatePairStats extends RTCStats {
|
||||
}
|
||||
|
||||
interface RTCIceGatherOptions {
|
||||
gatherPolicy?: string;
|
||||
gatherPolicy?: RTCIceGatherPolicy;
|
||||
iceservers?: RTCIceServer[];
|
||||
portRange?: MSPortRange;
|
||||
}
|
||||
@ -1003,7 +1003,7 @@ interface RTCRtpParameters {
|
||||
headerExtensions?: RTCRtpHeaderExtensionParameters[];
|
||||
encodings?: RTCRtpEncodingParameters[];
|
||||
rtcp?: RTCRtcpParameters;
|
||||
degradationPreference?: string;
|
||||
degradationPreference?: RTCDegradationPreference;
|
||||
}
|
||||
|
||||
interface RTCRtpRtxParameters {
|
||||
@ -1017,7 +1017,7 @@ interface RTCRtpUnhandled {
|
||||
}
|
||||
|
||||
interface RTCSessionDescriptionInit {
|
||||
type?: string;
|
||||
type?: RTCSdpType;
|
||||
sdp?: string;
|
||||
}
|
||||
|
||||
@ -1043,9 +1043,9 @@ interface RTCSsrcRange {
|
||||
|
||||
interface RTCStats {
|
||||
timestamp?: number;
|
||||
type?: string;
|
||||
type?: RTCStatsType;
|
||||
id?: string;
|
||||
msType?: string;
|
||||
msType?: MSStatsType;
|
||||
}
|
||||
|
||||
interface RTCStatsReport {
|
||||
@ -1070,11 +1070,11 @@ interface RequestInit {
|
||||
headers?: any;
|
||||
body?: any;
|
||||
referrer?: string;
|
||||
referrerPolicy?: string;
|
||||
mode?: string;
|
||||
credentials?: string;
|
||||
cache?: string;
|
||||
redirect?: string;
|
||||
referrerPolicy?: ReferrerPolicy;
|
||||
mode?: RequestMode;
|
||||
credentials?: RequestCredentials;
|
||||
cache?: RequestCache;
|
||||
redirect?: RequestRedirect;
|
||||
integrity?: string;
|
||||
keepalive?: boolean;
|
||||
window?: any;
|
||||
@ -1087,9 +1087,9 @@ interface ResponseInit {
|
||||
}
|
||||
|
||||
interface ScopedCredentialDescriptor {
|
||||
type?: string;
|
||||
type?: ScopedCredentialType;
|
||||
id?: any;
|
||||
transports?: string[];
|
||||
transports?: Transport[];
|
||||
}
|
||||
|
||||
interface ScopedCredentialOptions {
|
||||
@ -1100,7 +1100,7 @@ interface ScopedCredentialOptions {
|
||||
}
|
||||
|
||||
interface ScopedCredentialParameters {
|
||||
type?: string;
|
||||
type?: ScopedCredentialType;
|
||||
algorithm?: string | Algorithm;
|
||||
}
|
||||
|
||||
@ -1330,7 +1330,7 @@ interface AudioContextBase extends EventTarget {
|
||||
readonly listener: AudioListener;
|
||||
onstatechange: (this: AudioContext, ev: Event) => any;
|
||||
readonly sampleRate: number;
|
||||
readonly state: string;
|
||||
readonly state: AudioContextState;
|
||||
close(): Promise<void>;
|
||||
createAnalyser(): AnalyserNode;
|
||||
createBiquadFilter(): BiquadFilterNode;
|
||||
@ -1390,8 +1390,8 @@ declare var AudioListener: {
|
||||
|
||||
interface AudioNode extends EventTarget {
|
||||
channelCount: number;
|
||||
channelCountMode: string;
|
||||
channelInterpretation: string;
|
||||
channelCountMode: ChannelCountMode;
|
||||
channelInterpretation: ChannelInterpretation;
|
||||
readonly context: AudioContext;
|
||||
readonly numberOfInputs: number;
|
||||
readonly numberOfOutputs: number;
|
||||
@ -1494,7 +1494,7 @@ interface BiquadFilterNode extends AudioNode {
|
||||
readonly detune: AudioParam;
|
||||
readonly frequency: AudioParam;
|
||||
readonly gain: AudioParam;
|
||||
type: string;
|
||||
type: BiquadFilterType;
|
||||
getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void;
|
||||
}
|
||||
|
||||
@ -2134,7 +2134,7 @@ interface CanvasRenderingContext2D extends Object, CanvasPathMethods {
|
||||
lineJoin: string;
|
||||
lineWidth: number;
|
||||
miterLimit: number;
|
||||
msFillRule: string;
|
||||
msFillRule: CanvasFillRule;
|
||||
shadowBlur: number;
|
||||
shadowColor: string;
|
||||
shadowOffsetX: number;
|
||||
@ -2147,7 +2147,7 @@ interface CanvasRenderingContext2D extends Object, CanvasPathMethods {
|
||||
oImageSmoothingEnabled: boolean;
|
||||
beginPath(): void;
|
||||
clearRect(x: number, y: number, w: number, h: number): void;
|
||||
clip(fillRule?: string): void;
|
||||
clip(fillRule?: CanvasFillRule): void;
|
||||
createImageData(imageDataOrSw: number | ImageData, sh?: number): ImageData;
|
||||
createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;
|
||||
createPattern(image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement, repetition: string): CanvasPattern;
|
||||
@ -2156,12 +2156,12 @@ interface CanvasRenderingContext2D extends Object, CanvasPathMethods {
|
||||
drawImage(image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | ImageBitmap, dstX: number, dstY: number): void;
|
||||
drawImage(image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | ImageBitmap, dstX: number, dstY: number, dstW: number, dstH: number): void;
|
||||
drawImage(image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | ImageBitmap, srcX: number, srcY: number, srcW: number, srcH: number, dstX: number, dstY: number, dstW: number, dstH: number): void;
|
||||
fill(fillRule?: string): void;
|
||||
fill(fillRule?: CanvasFillRule): void;
|
||||
fillRect(x: number, y: number, w: number, h: number): void;
|
||||
fillText(text: string, x: number, y: number, maxWidth?: number): void;
|
||||
getImageData(sx: number, sy: number, sw: number, sh: number): ImageData;
|
||||
getLineDash(): number[];
|
||||
isPointInPath(x: number, y: number, fillRule?: string): boolean;
|
||||
isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean;
|
||||
measureText(text: string): TextMetrics;
|
||||
putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX?: number, dirtyY?: number, dirtyWidth?: number, dirtyHeight?: number): void;
|
||||
restore(): void;
|
||||
@ -2538,6 +2538,7 @@ interface DataTransfer {
|
||||
clearData(format?: string): boolean;
|
||||
getData(format: string): string;
|
||||
setData(format: string, data: string): boolean;
|
||||
setDragImage(image: Element, x: number, y: number): void;
|
||||
}
|
||||
|
||||
declare var DataTransfer: {
|
||||
@ -2574,7 +2575,7 @@ declare var DataTransferItemList: {
|
||||
|
||||
interface DeferredPermissionRequest {
|
||||
readonly id: number;
|
||||
readonly type: string;
|
||||
readonly type: MSWebViewPermissionType;
|
||||
readonly uri: string;
|
||||
allow(): void;
|
||||
deny(): void;
|
||||
@ -3192,7 +3193,7 @@ interface Document extends Node, GlobalEventHandlers, NodeSelector, DocumentEven
|
||||
* Contains the title of the document.
|
||||
*/
|
||||
title: string;
|
||||
readonly visibilityState: string;
|
||||
readonly visibilityState: VisibilityState;
|
||||
/**
|
||||
* Sets or gets the color of the links that the user has visited.
|
||||
*/
|
||||
@ -3207,7 +3208,7 @@ interface Document extends Node, GlobalEventHandlers, NodeSelector, DocumentEven
|
||||
* Gets or sets the version attribute specified in the declaration of an XML document.
|
||||
*/
|
||||
xmlVersion: string | null;
|
||||
adoptNode(source: Node): Node;
|
||||
adoptNode<T extends Node>(source: T): T;
|
||||
captureEvents(): void;
|
||||
caretRangeFromPoint(x: number, y: number): Range;
|
||||
clear(): void;
|
||||
@ -3384,7 +3385,7 @@ interface Document extends Node, GlobalEventHandlers, NodeSelector, DocumentEven
|
||||
* Gets a value indicating whether the object currently has focus.
|
||||
*/
|
||||
hasFocus(): boolean;
|
||||
importNode(importedNode: Node, deep: boolean): Node;
|
||||
importNode<T extends Node>(importedNode: T, deep: boolean): T;
|
||||
msElementsFromPoint(x: number, y: number): NodeListOf<Element>;
|
||||
msElementsFromRect(left: number, top: number, width: number, height: number): NodeListOf<Element>;
|
||||
/**
|
||||
@ -3700,9 +3701,9 @@ declare var Event: {
|
||||
}
|
||||
|
||||
interface EventTarget {
|
||||
addEventListener(type: string, listener?: EventListenerOrEventListenerObject, useCapture?: boolean): void;
|
||||
addEventListener(type: string, listener?: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
||||
dispatchEvent(evt: Event): boolean;
|
||||
removeEventListener(type: string, listener?: EventListenerOrEventListenerObject, useCapture?: boolean): void;
|
||||
removeEventListener(type: string, listener?: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
||||
}
|
||||
|
||||
declare var EventTarget: {
|
||||
@ -3781,7 +3782,7 @@ declare var FocusEvent: {
|
||||
}
|
||||
|
||||
interface FocusNavigationEvent extends Event {
|
||||
readonly navigationReason: string;
|
||||
readonly navigationReason: NavigationReason;
|
||||
readonly originHeight: number;
|
||||
readonly originLeft: number;
|
||||
readonly originTop: number;
|
||||
@ -3795,7 +3796,12 @@ declare var FocusNavigationEvent: {
|
||||
}
|
||||
|
||||
interface FormData {
|
||||
append(name: any, value: any, blobName?: string): void;
|
||||
append(name: string, value: string | Blob, fileName?: string): void;
|
||||
delete(name: string): void;
|
||||
get(name: string): FormDataEntryValue | null;
|
||||
getAll(name: string): FormDataEntryValue[];
|
||||
has(name: string): boolean;
|
||||
set(name: string, value: string | Blob, fileName?: string): void;
|
||||
}
|
||||
|
||||
declare var FormData: {
|
||||
@ -6957,7 +6963,7 @@ declare var History: {
|
||||
}
|
||||
|
||||
interface IDBCursor {
|
||||
readonly direction: string;
|
||||
readonly direction: IDBCursorDirection;
|
||||
key: IDBKeyRange | IDBValidKey;
|
||||
readonly primaryKey: any;
|
||||
source: IDBObjectStore | IDBIndex;
|
||||
@ -7109,7 +7115,7 @@ interface IDBRequest extends EventTarget {
|
||||
readonly error: DOMError;
|
||||
onerror: (this: IDBRequest, ev: Event) => any;
|
||||
onsuccess: (this: IDBRequest, ev: Event) => any;
|
||||
readonly readyState: string;
|
||||
readonly readyState: IDBRequestReadyState;
|
||||
readonly result: any;
|
||||
source: IDBObjectStore | IDBIndex | IDBCursor;
|
||||
readonly transaction: IDBTransaction;
|
||||
@ -7131,7 +7137,7 @@ interface IDBTransactionEventMap {
|
||||
interface IDBTransaction extends EventTarget {
|
||||
readonly db: IDBDatabase;
|
||||
readonly error: DOMError;
|
||||
readonly mode: string;
|
||||
readonly mode: IDBTransactionMode;
|
||||
onabort: (this: IDBTransaction, ev: Event) => any;
|
||||
oncomplete: (this: IDBTransaction, ev: Event) => any;
|
||||
onerror: (this: IDBTransaction, ev: Event) => any;
|
||||
@ -7249,7 +7255,7 @@ declare var KeyboardEvent: {
|
||||
|
||||
interface ListeningStateChangedEvent extends Event {
|
||||
readonly label: string;
|
||||
readonly state: string;
|
||||
readonly state: ListeningState;
|
||||
}
|
||||
|
||||
declare var ListeningStateChangedEvent: {
|
||||
@ -7340,7 +7346,7 @@ declare var MSAppAsyncOperation: {
|
||||
|
||||
interface MSAssertion {
|
||||
readonly id: string;
|
||||
readonly type: string;
|
||||
readonly type: MSCredentialType;
|
||||
}
|
||||
|
||||
declare var MSAssertion: {
|
||||
@ -7372,7 +7378,7 @@ interface MSFIDOCredentialAssertion extends MSAssertion {
|
||||
readonly algorithm: string | Algorithm;
|
||||
readonly attestation: any;
|
||||
readonly publicKey: string;
|
||||
readonly transportHints: string[];
|
||||
readonly transportHints: MSTransportType[];
|
||||
}
|
||||
|
||||
declare var MSFIDOCredentialAssertion: {
|
||||
@ -7476,7 +7482,7 @@ interface MSHTMLWebViewElement extends HTMLElement {
|
||||
goForward(): void;
|
||||
invokeScriptAsync(scriptName: string, ...args: any[]): MSWebViewAsyncOperation;
|
||||
navigate(uri: string): void;
|
||||
navigateFocus(navigationReason: string, origin: FocusNavigationOrigin): void;
|
||||
navigateFocus(navigationReason: NavigationReason, origin: FocusNavigationOrigin): void;
|
||||
navigateToLocalStreamUri(source: string, streamResolver: any): void;
|
||||
navigateToString(contents: string): void;
|
||||
navigateWithHttpRequestMessage(requestMessage: any): void;
|
||||
@ -7731,7 +7737,7 @@ declare var MSWebViewSettings: {
|
||||
interface MediaDeviceInfo {
|
||||
readonly deviceId: string;
|
||||
readonly groupId: string;
|
||||
readonly kind: string;
|
||||
readonly kind: MediaDeviceKind;
|
||||
readonly label: string;
|
||||
}
|
||||
|
||||
@ -7798,7 +7804,7 @@ declare var MediaError: {
|
||||
|
||||
interface MediaKeyMessageEvent extends Event {
|
||||
readonly message: ArrayBuffer;
|
||||
readonly messageType: string;
|
||||
readonly messageType: MediaKeyMessageType;
|
||||
}
|
||||
|
||||
declare var MediaKeyMessageEvent: {
|
||||
@ -7826,7 +7832,7 @@ declare var MediaKeySession: {
|
||||
interface MediaKeyStatusMap {
|
||||
readonly size: number;
|
||||
forEach(callback: ForEachCallback): void;
|
||||
get(keyId: any): string;
|
||||
get(keyId: any): MediaKeyStatus;
|
||||
has(keyId: any): boolean;
|
||||
}
|
||||
|
||||
@ -7847,7 +7853,7 @@ declare var MediaKeySystemAccess: {
|
||||
}
|
||||
|
||||
interface MediaKeys {
|
||||
createSession(sessionType?: string): MediaKeySession;
|
||||
createSession(sessionType?: MediaKeySessionType): MediaKeySession;
|
||||
setServerCertificate(serverCertificate: any): Promise<void>;
|
||||
}
|
||||
|
||||
@ -7985,7 +7991,7 @@ interface MediaStreamTrack extends EventTarget {
|
||||
onoverconstrained: (this: MediaStreamTrack, ev: MediaStreamErrorEvent) => any;
|
||||
onunmute: (this: MediaStreamTrack, ev: Event) => any;
|
||||
readonly readonly: boolean;
|
||||
readonly readyState: string;
|
||||
readonly readyState: MediaStreamTrackState;
|
||||
readonly remote: boolean;
|
||||
applyConstraints(constraints: MediaTrackConstraints): Promise<void>;
|
||||
clone(): MediaStreamTrack;
|
||||
@ -8206,7 +8212,7 @@ declare var NavigationEventWithReferrer: {
|
||||
interface Navigator extends Object, NavigatorID, NavigatorOnLine, NavigatorContentUtils, NavigatorStorageUtils, NavigatorGeolocation, MSNavigatorDoNotTrack, MSFileSaver, NavigatorBeacon, NavigatorConcurrentHardware, NavigatorUserMedia {
|
||||
readonly authentication: WebAuthentication;
|
||||
readonly cookieEnabled: boolean;
|
||||
gamepadInputEmulation: string;
|
||||
gamepadInputEmulation: GamepadInputEmulationType;
|
||||
readonly language: string;
|
||||
readonly maxTouchPoints: number;
|
||||
readonly mimeTypes: MimeTypeArray;
|
||||
@ -8253,15 +8259,15 @@ interface Node extends EventTarget {
|
||||
contains(child: Node): boolean;
|
||||
hasAttributes(): boolean;
|
||||
hasChildNodes(): boolean;
|
||||
insertBefore(newChild: Node, refChild: Node | null): Node;
|
||||
insertBefore<T extends Node>(newChild: T, refChild: Node | null): T;
|
||||
isDefaultNamespace(namespaceURI: string | null): boolean;
|
||||
isEqualNode(arg: Node): boolean;
|
||||
isSameNode(other: Node): boolean;
|
||||
lookupNamespaceURI(prefix: string | null): string | null;
|
||||
lookupPrefix(namespaceURI: string | null): string | null;
|
||||
normalize(): void;
|
||||
removeChild(oldChild: Node): Node;
|
||||
replaceChild(newChild: Node, oldChild: Node): Node;
|
||||
removeChild<T extends Node>(oldChild: T): T;
|
||||
replaceChild<T extends Node>(newChild: Node, oldChild: T): T;
|
||||
readonly ATTRIBUTE_NODE: number;
|
||||
readonly CDATA_SECTION_NODE: number;
|
||||
readonly COMMENT_NODE: number;
|
||||
@ -8363,14 +8369,14 @@ interface NotificationEventMap {
|
||||
|
||||
interface Notification extends EventTarget {
|
||||
readonly body: string;
|
||||
readonly dir: string;
|
||||
readonly dir: NotificationDirection;
|
||||
readonly icon: string;
|
||||
readonly lang: string;
|
||||
onclick: (this: Notification, ev: Event) => any;
|
||||
onclose: (this: Notification, ev: Event) => any;
|
||||
onerror: (this: Notification, ev: Event) => any;
|
||||
onshow: (this: Notification, ev: Event) => any;
|
||||
readonly permission: string;
|
||||
readonly permission: NotificationPermission;
|
||||
readonly tag: string;
|
||||
readonly title: string;
|
||||
close(): void;
|
||||
@ -8381,7 +8387,7 @@ interface Notification extends EventTarget {
|
||||
declare var Notification: {
|
||||
prototype: Notification;
|
||||
new(title: string, options?: NotificationOptions): Notification;
|
||||
requestPermission(callback?: NotificationPermissionCallback): Promise<string>;
|
||||
requestPermission(callback?: NotificationPermissionCallback): Promise<NotificationPermission>;
|
||||
}
|
||||
|
||||
interface OES_element_index_uint {
|
||||
@ -8471,7 +8477,7 @@ interface OscillatorNode extends AudioNode {
|
||||
readonly detune: AudioParam;
|
||||
readonly frequency: AudioParam;
|
||||
onended: (this: OscillatorNode, ev: MediaStreamErrorEvent) => any;
|
||||
type: string;
|
||||
type: OscillatorType;
|
||||
setPeriodicWave(periodicWave: PeriodicWave): void;
|
||||
start(when?: number): void;
|
||||
stop(when?: number): void;
|
||||
@ -8514,9 +8520,9 @@ interface PannerNode extends AudioNode {
|
||||
coneInnerAngle: number;
|
||||
coneOuterAngle: number;
|
||||
coneOuterGain: number;
|
||||
distanceModel: string;
|
||||
distanceModel: DistanceModelType;
|
||||
maxDistance: number;
|
||||
panningModel: string;
|
||||
panningModel: PanningModelType;
|
||||
refDistance: number;
|
||||
rolloffFactor: number;
|
||||
setOrientation(x: number, y: number, z: number): void;
|
||||
@ -8567,7 +8573,7 @@ interface PaymentRequest extends EventTarget {
|
||||
onshippingoptionchange: (this: PaymentRequest, ev: Event) => any;
|
||||
readonly shippingAddress: PaymentAddress | null;
|
||||
readonly shippingOption: string | null;
|
||||
readonly shippingType: string | null;
|
||||
readonly shippingType: PaymentShippingType | null;
|
||||
abort(): Promise<void>;
|
||||
show(): Promise<PaymentResponse>;
|
||||
addEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, useCapture?: boolean): void;
|
||||
@ -8596,7 +8602,7 @@ interface PaymentResponse {
|
||||
readonly payerPhone: string | null;
|
||||
readonly shippingAddress: PaymentAddress | null;
|
||||
readonly shippingOption: string | null;
|
||||
complete(result?: string): Promise<void>;
|
||||
complete(result?: PaymentComplete): Promise<void>;
|
||||
toJSON(): any;
|
||||
}
|
||||
|
||||
@ -8724,7 +8730,7 @@ interface PerformanceNavigationTiming extends PerformanceEntry {
|
||||
readonly requestStart: number;
|
||||
readonly responseEnd: number;
|
||||
readonly responseStart: number;
|
||||
readonly type: string;
|
||||
readonly type: NavigationType;
|
||||
readonly unloadEventEnd: number;
|
||||
readonly unloadEventStart: number;
|
||||
}
|
||||
@ -8793,7 +8799,7 @@ declare var PeriodicWave: {
|
||||
}
|
||||
|
||||
interface PermissionRequest extends DeferredPermissionRequest {
|
||||
readonly state: string;
|
||||
readonly state: MSWebViewPermissionState;
|
||||
defer(): void;
|
||||
}
|
||||
|
||||
@ -8923,7 +8929,7 @@ declare var ProgressEvent: {
|
||||
|
||||
interface PushManager {
|
||||
getSubscription(): Promise<PushSubscription>;
|
||||
permissionState(options?: PushSubscriptionOptionsInit): Promise<string>;
|
||||
permissionState(options?: PushSubscriptionOptionsInit): Promise<PushPermissionState>;
|
||||
subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;
|
||||
}
|
||||
|
||||
@ -8935,7 +8941,7 @@ declare var PushManager: {
|
||||
interface PushSubscription {
|
||||
readonly endpoint: USVString;
|
||||
readonly options: PushSubscriptionOptions;
|
||||
getKey(name: string): ArrayBuffer | null;
|
||||
getKey(name: PushEncryptionKeyName): ArrayBuffer | null;
|
||||
toJSON(): any;
|
||||
unsubscribe(): Promise<boolean>;
|
||||
}
|
||||
@ -8972,7 +8978,7 @@ interface RTCDtlsTransportEventMap {
|
||||
interface RTCDtlsTransport extends RTCStatsProvider {
|
||||
ondtlsstatechange: ((this: RTCDtlsTransport, ev: RTCDtlsTransportStateChangedEvent) => any) | null;
|
||||
onerror: ((this: RTCDtlsTransport, ev: Event) => any) | null;
|
||||
readonly state: string;
|
||||
readonly state: RTCDtlsTransportState;
|
||||
readonly transport: RTCIceTransport;
|
||||
getLocalParameters(): RTCDtlsParameters;
|
||||
getRemoteCertificates(): ArrayBuffer[];
|
||||
@ -8989,7 +8995,7 @@ declare var RTCDtlsTransport: {
|
||||
}
|
||||
|
||||
interface RTCDtlsTransportStateChangedEvent extends Event {
|
||||
readonly state: string;
|
||||
readonly state: RTCDtlsTransportState;
|
||||
}
|
||||
|
||||
declare var RTCDtlsTransportStateChangedEvent: {
|
||||
@ -9045,7 +9051,7 @@ interface RTCIceGathererEventMap {
|
||||
}
|
||||
|
||||
interface RTCIceGatherer extends RTCStatsProvider {
|
||||
readonly component: string;
|
||||
readonly component: RTCIceComponent;
|
||||
onerror: ((this: RTCIceGatherer, ev: Event) => any) | null;
|
||||
onlocalcandidate: ((this: RTCIceGatherer, ev: RTCIceGathererEvent) => any) | null;
|
||||
createAssociatedGatherer(): RTCIceGatherer;
|
||||
@ -9075,19 +9081,19 @@ interface RTCIceTransportEventMap {
|
||||
}
|
||||
|
||||
interface RTCIceTransport extends RTCStatsProvider {
|
||||
readonly component: string;
|
||||
readonly component: RTCIceComponent;
|
||||
readonly iceGatherer: RTCIceGatherer | null;
|
||||
oncandidatepairchange: ((this: RTCIceTransport, ev: RTCIceCandidatePairChangedEvent) => any) | null;
|
||||
onicestatechange: ((this: RTCIceTransport, ev: RTCIceTransportStateChangedEvent) => any) | null;
|
||||
readonly role: string;
|
||||
readonly state: string;
|
||||
readonly role: RTCIceRole;
|
||||
readonly state: RTCIceTransportState;
|
||||
addRemoteCandidate(remoteCandidate: RTCIceCandidateDictionary | RTCIceCandidateComplete): void;
|
||||
createAssociatedTransport(): RTCIceTransport;
|
||||
getNominatedCandidatePair(): RTCIceCandidatePair | null;
|
||||
getRemoteCandidates(): RTCIceCandidateDictionary[];
|
||||
getRemoteParameters(): RTCIceParameters | null;
|
||||
setRemoteCandidates(remoteCandidates: RTCIceCandidateDictionary[]): void;
|
||||
start(gatherer: RTCIceGatherer, remoteParameters: RTCIceParameters, role?: string): void;
|
||||
start(gatherer: RTCIceGatherer, remoteParameters: RTCIceParameters, role?: RTCIceRole): void;
|
||||
stop(): void;
|
||||
addEventListener<K extends keyof RTCIceTransportEventMap>(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, useCapture?: boolean): void;
|
||||
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
|
||||
@ -9099,7 +9105,7 @@ declare var RTCIceTransport: {
|
||||
}
|
||||
|
||||
interface RTCIceTransportStateChangedEvent extends Event {
|
||||
readonly state: string;
|
||||
readonly state: RTCIceTransportState;
|
||||
}
|
||||
|
||||
declare var RTCIceTransportStateChangedEvent: {
|
||||
@ -9119,8 +9125,8 @@ interface RTCPeerConnectionEventMap {
|
||||
|
||||
interface RTCPeerConnection extends EventTarget {
|
||||
readonly canTrickleIceCandidates: boolean | null;
|
||||
readonly iceConnectionState: string;
|
||||
readonly iceGatheringState: string;
|
||||
readonly iceConnectionState: RTCIceConnectionState;
|
||||
readonly iceGatheringState: RTCIceGatheringState;
|
||||
readonly localDescription: RTCSessionDescription | null;
|
||||
onaddstream: (this: RTCPeerConnection, ev: MediaStreamEvent) => any;
|
||||
onicecandidate: (this: RTCPeerConnection, ev: RTCPeerConnectionIceEvent) => any;
|
||||
@ -9130,7 +9136,7 @@ interface RTCPeerConnection extends EventTarget {
|
||||
onremovestream: (this: RTCPeerConnection, ev: MediaStreamEvent) => any;
|
||||
onsignalingstatechange: (this: RTCPeerConnection, ev: Event) => any;
|
||||
readonly remoteDescription: RTCSessionDescription | null;
|
||||
readonly signalingState: string;
|
||||
readonly signalingState: RTCSignalingState;
|
||||
addIceCandidate(candidate: RTCIceCandidate, successCallback?: VoidFunction, failureCallback?: RTCPeerConnectionErrorCallback): Promise<void>;
|
||||
addStream(stream: MediaStream): void;
|
||||
close(): void;
|
||||
@ -9213,7 +9219,7 @@ declare var RTCRtpSender: {
|
||||
|
||||
interface RTCSessionDescription {
|
||||
sdp: string | null;
|
||||
type: string | null;
|
||||
type: RTCSdpType | null;
|
||||
toJSON(): any;
|
||||
}
|
||||
|
||||
@ -9272,7 +9278,7 @@ interface Range {
|
||||
createContextualFragment(fragment: string): DocumentFragment;
|
||||
deleteContents(): void;
|
||||
detach(): void;
|
||||
expand(Unit: string): boolean;
|
||||
expand(Unit: ExpandGranularity): boolean;
|
||||
extractContents(): DocumentFragment;
|
||||
getBoundingClientRect(): ClientRect;
|
||||
getClientRects(): ClientRectList;
|
||||
@ -9325,18 +9331,18 @@ declare var ReadableStreamReader: {
|
||||
}
|
||||
|
||||
interface Request extends Object, Body {
|
||||
readonly cache: string;
|
||||
readonly credentials: string;
|
||||
readonly destination: string;
|
||||
readonly cache: RequestCache;
|
||||
readonly credentials: RequestCredentials;
|
||||
readonly destination: RequestDestination;
|
||||
readonly headers: Headers;
|
||||
readonly integrity: string;
|
||||
readonly keepalive: boolean;
|
||||
readonly method: string;
|
||||
readonly mode: string;
|
||||
readonly redirect: string;
|
||||
readonly mode: RequestMode;
|
||||
readonly redirect: RequestRedirect;
|
||||
readonly referrer: string;
|
||||
readonly referrerPolicy: string;
|
||||
readonly type: string;
|
||||
readonly referrerPolicy: ReferrerPolicy;
|
||||
readonly type: RequestType;
|
||||
readonly url: string;
|
||||
clone(): Request;
|
||||
}
|
||||
@ -9352,7 +9358,7 @@ interface Response extends Object, Body {
|
||||
readonly ok: boolean;
|
||||
readonly status: number;
|
||||
readonly statusText: string;
|
||||
readonly type: string;
|
||||
readonly type: ResponseType;
|
||||
readonly url: string;
|
||||
clone(): Response;
|
||||
}
|
||||
@ -11152,7 +11158,7 @@ declare var SVGZoomEvent: {
|
||||
|
||||
interface ScopedCredential {
|
||||
readonly id: ArrayBuffer;
|
||||
readonly type: string;
|
||||
readonly type: ScopedCredentialType;
|
||||
}
|
||||
|
||||
declare var ScopedCredential: {
|
||||
@ -11269,7 +11275,7 @@ interface ServiceWorkerEventMap extends AbstractWorkerEventMap {
|
||||
interface ServiceWorker extends EventTarget, AbstractWorker {
|
||||
onstatechange: (this: ServiceWorker, ev: Event) => any;
|
||||
readonly scriptURL: USVString;
|
||||
readonly state: string;
|
||||
readonly state: ServiceWorkerState;
|
||||
postMessage(message: any, transfer?: any[]): void;
|
||||
addEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, useCapture?: boolean): void;
|
||||
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
|
||||
@ -11345,7 +11351,7 @@ interface SourceBuffer extends EventTarget {
|
||||
appendWindowStart: number;
|
||||
readonly audioTracks: AudioTrackList;
|
||||
readonly buffered: TimeRanges;
|
||||
mode: string;
|
||||
mode: AppendMode;
|
||||
timestampOffset: number;
|
||||
readonly updating: boolean;
|
||||
readonly videoTracks: VideoTrackList;
|
||||
@ -11581,7 +11587,7 @@ interface Text extends CharacterData {
|
||||
|
||||
declare var Text: {
|
||||
prototype: Text;
|
||||
new(): Text;
|
||||
new(data?: string): Text;
|
||||
}
|
||||
|
||||
interface TextEvent extends UIEvent {
|
||||
@ -11764,7 +11770,7 @@ interface TouchEvent extends UIEvent {
|
||||
|
||||
declare var TouchEvent: {
|
||||
prototype: TouchEvent;
|
||||
new(): TouchEvent;
|
||||
new(type: string, touchEventInit?: TouchEventInit): TouchEvent;
|
||||
}
|
||||
|
||||
interface TouchList {
|
||||
@ -11970,7 +11976,7 @@ declare var WEBGL_depth_texture: {
|
||||
|
||||
interface WaveShaperNode extends AudioNode {
|
||||
curve: Float32Array | null;
|
||||
oversample: string;
|
||||
oversample: OverSampleType;
|
||||
}
|
||||
|
||||
declare var WaveShaperNode: {
|
||||
@ -13231,6 +13237,7 @@ interface Window extends EventTarget, WindowTimers, WindowSessionStorage, Window
|
||||
readonly top: Window;
|
||||
readonly window: Window;
|
||||
URL: typeof URL;
|
||||
URLSearchParams: typeof URLSearchParams;
|
||||
Blob: typeof Blob;
|
||||
customElements: CustomElementRegistry;
|
||||
alert(message?: any): void;
|
||||
@ -13239,7 +13246,7 @@ interface Window extends EventTarget, WindowTimers, WindowSessionStorage, Window
|
||||
captureEvents(): void;
|
||||
close(): void;
|
||||
confirm(message?: string): boolean;
|
||||
departFocus(navigationReason: string, origin: FocusNavigationOrigin): void;
|
||||
departFocus(navigationReason: NavigationReason, origin: FocusNavigationOrigin): void;
|
||||
focus(): void;
|
||||
getComputedStyle(elt: Element, pseudoElt?: string): CSSStyleDeclaration;
|
||||
getMatchedCSSRules(elt: Element, pseudoElt?: string): CSSRuleList;
|
||||
@ -13314,7 +13321,7 @@ interface XMLHttpRequest extends EventTarget, XMLHttpRequestEventTarget {
|
||||
readonly readyState: number;
|
||||
readonly response: any;
|
||||
readonly responseText: string;
|
||||
responseType: string;
|
||||
responseType: XMLHttpRequestResponseType;
|
||||
readonly responseURL: string;
|
||||
readonly responseXML: Document | null;
|
||||
readonly status: number;
|
||||
@ -14171,6 +14178,21 @@ interface PromiseRejectionEventInit extends EventInit {
|
||||
reason?: any;
|
||||
}
|
||||
|
||||
interface EventListenerOptions {
|
||||
capture?: boolean;
|
||||
}
|
||||
|
||||
interface AddEventListenerOptions extends EventListenerOptions {
|
||||
passive?: boolean;
|
||||
once?: boolean;
|
||||
}
|
||||
|
||||
interface TouchEventInit extends EventModifierInit {
|
||||
touches?: Touch[];
|
||||
targetTouches?: Touch[];
|
||||
changedTouches?: Touch[];
|
||||
}
|
||||
|
||||
declare type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
|
||||
|
||||
interface ErrorEventHandler {
|
||||
@ -14228,10 +14250,10 @@ interface NavigatorUserMediaErrorCallback {
|
||||
(error: MediaStreamError): void;
|
||||
}
|
||||
interface ForEachCallback {
|
||||
(keyId: any, status: string): void;
|
||||
(keyId: any, status: MediaKeyStatus): void;
|
||||
}
|
||||
interface NotificationPermissionCallback {
|
||||
(permission: string): void;
|
||||
(permission: NotificationPermission): void;
|
||||
}
|
||||
interface IntersectionObserverCallback {
|
||||
(entries: IntersectionObserverEntry[], observer: IntersectionObserver): void;
|
||||
@ -14838,7 +14860,7 @@ declare function cancelAnimationFrame(handle: number): void;
|
||||
declare function captureEvents(): void;
|
||||
declare function close(): void;
|
||||
declare function confirm(message?: string): boolean;
|
||||
declare function departFocus(navigationReason: string, origin: FocusNavigationOrigin): void;
|
||||
declare function departFocus(navigationReason: NavigationReason, origin: FocusNavigationOrigin): void;
|
||||
declare function focus(): void;
|
||||
declare function getComputedStyle(elt: Element, pseudoElt?: string): CSSStyleDeclaration;
|
||||
declare function getMatchedCSSRules(elt: Element, pseudoElt?: string): CSSRuleList;
|
||||
@ -14870,7 +14892,7 @@ declare function scrollTo(options?: ScrollToOptions): void;
|
||||
declare function scrollBy(options?: ScrollToOptions): void;
|
||||
declare function toString(): string;
|
||||
declare function dispatchEvent(evt: Event): boolean;
|
||||
declare function removeEventListener(type: string, listener?: EventListenerOrEventListenerObject, useCapture?: boolean): void;
|
||||
declare function removeEventListener(type: string, listener?: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
||||
declare function clearInterval(handle: number): void;
|
||||
declare function clearTimeout(handle: number): void;
|
||||
declare function setInterval(handler: (...args: any[]) => void, timeout: number): number;
|
||||
@ -14939,4 +14961,76 @@ type ScrollLogicalPosition = "start" | "center" | "end" | "nearest";
|
||||
type IDBValidKey = number | string | Date | IDBArrayKey;
|
||||
type BufferSource = ArrayBuffer | ArrayBufferView;
|
||||
type MouseWheelEvent = WheelEvent;
|
||||
type ScrollRestoration = "auto" | "manual";
|
||||
type ScrollRestoration = "auto" | "manual";
|
||||
type FormDataEntryValue = string | File;
|
||||
type AppendMode = "segments" | "sequence";
|
||||
type AudioContextState = "suspended" | "running" | "closed";
|
||||
type BiquadFilterType = "lowpass" | "highpass" | "bandpass" | "lowshelf" | "highshelf" | "peaking" | "notch" | "allpass";
|
||||
type CanvasFillRule = "nonzero" | "evenodd";
|
||||
type ChannelCountMode = "max" | "clamped-max" | "explicit";
|
||||
type ChannelInterpretation = "speakers" | "discrete";
|
||||
type DistanceModelType = "linear" | "inverse" | "exponential";
|
||||
type ExpandGranularity = "character" | "word" | "sentence" | "textedit";
|
||||
type GamepadInputEmulationType = "mouse" | "keyboard" | "gamepad";
|
||||
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
|
||||
type IDBRequestReadyState = "pending" | "done";
|
||||
type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
|
||||
type ListeningState = "inactive" | "active" | "disambiguation";
|
||||
type MSCredentialType = "FIDO_2_0";
|
||||
type MSIceAddrType = "os" | "stun" | "turn" | "peer-derived";
|
||||
type MSIceType = "failed" | "direct" | "relay";
|
||||
type MSStatsType = "description" | "localclientevent" | "inbound-network" | "outbound-network" | "inbound-payload" | "outbound-payload" | "transportdiagnostics";
|
||||
type MSTransportType = "Embedded" | "USB" | "NFC" | "BT";
|
||||
type MSWebViewPermissionState = "unknown" | "defer" | "allow" | "deny";
|
||||
type MSWebViewPermissionType = "geolocation" | "unlimitedIndexedDBQuota" | "media" | "pointerlock" | "webnotifications";
|
||||
type MediaDeviceKind = "audioinput" | "audiooutput" | "videoinput";
|
||||
type MediaKeyMessageType = "license-request" | "license-renewal" | "license-release" | "individualization-request";
|
||||
type MediaKeySessionType = "temporary" | "persistent-license" | "persistent-release-message";
|
||||
type MediaKeyStatus = "usable" | "expired" | "output-downscaled" | "output-not-allowed" | "status-pending" | "internal-error";
|
||||
type MediaKeysRequirement = "required" | "optional" | "not-allowed";
|
||||
type MediaStreamTrackState = "live" | "ended";
|
||||
type NavigationReason = "up" | "down" | "left" | "right";
|
||||
type NavigationType = "navigate" | "reload" | "back_forward" | "prerender";
|
||||
type NotificationDirection = "auto" | "ltr" | "rtl";
|
||||
type NotificationPermission = "default" | "denied" | "granted";
|
||||
type OscillatorType = "sine" | "square" | "sawtooth" | "triangle" | "custom";
|
||||
type OverSampleType = "none" | "2x" | "4x";
|
||||
type PanningModelType = "equalpower";
|
||||
type PaymentComplete = "success" | "fail" | "";
|
||||
type PaymentShippingType = "shipping" | "delivery" | "pickup";
|
||||
type PushEncryptionKeyName = "p256dh" | "auth";
|
||||
type PushPermissionState = "granted" | "denied" | "prompt";
|
||||
type RTCBundlePolicy = "balanced" | "max-compat" | "max-bundle";
|
||||
type RTCDegradationPreference = "maintain-framerate" | "maintain-resolution" | "balanced";
|
||||
type RTCDtlsRole = "auto" | "client" | "server";
|
||||
type RTCDtlsTransportState = "new" | "connecting" | "connected" | "closed";
|
||||
type RTCIceCandidateType = "host" | "srflx" | "prflx" | "relay";
|
||||
type RTCIceComponent = "RTP" | "RTCP";
|
||||
type RTCIceConnectionState = "new" | "checking" | "connected" | "completed" | "failed" | "disconnected" | "closed";
|
||||
type RTCIceGatherPolicy = "all" | "nohost" | "relay";
|
||||
type RTCIceGathererState = "new" | "gathering" | "complete";
|
||||
type RTCIceGatheringState = "new" | "gathering" | "complete";
|
||||
type RTCIceProtocol = "udp" | "tcp";
|
||||
type RTCIceRole = "controlling" | "controlled";
|
||||
type RTCIceTcpCandidateType = "active" | "passive" | "so";
|
||||
type RTCIceTransportPolicy = "none" | "relay" | "all";
|
||||
type RTCIceTransportState = "new" | "checking" | "connected" | "completed" | "disconnected" | "closed";
|
||||
type RTCSdpType = "offer" | "pranswer" | "answer";
|
||||
type RTCSignalingState = "stable" | "have-local-offer" | "have-remote-offer" | "have-local-pranswer" | "have-remote-pranswer" | "closed";
|
||||
type RTCStatsIceCandidatePairState = "frozen" | "waiting" | "inprogress" | "failed" | "succeeded" | "cancelled";
|
||||
type RTCStatsIceCandidateType = "host" | "serverreflexive" | "peerreflexive" | "relayed";
|
||||
type RTCStatsType = "inboundrtp" | "outboundrtp" | "session" | "datachannel" | "track" | "transport" | "candidatepair" | "localcandidate" | "remotecandidate";
|
||||
type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin-only" | "origin-when-cross-origin" | "unsafe-url";
|
||||
type RequestCache = "default" | "no-store" | "reload" | "no-cache" | "force-cache";
|
||||
type RequestCredentials = "omit" | "same-origin" | "include";
|
||||
type RequestDestination = "" | "document" | "sharedworker" | "subresource" | "unknown" | "worker";
|
||||
type RequestMode = "navigate" | "same-origin" | "no-cors" | "cors";
|
||||
type RequestRedirect = "follow" | "error" | "manual";
|
||||
type RequestType = "" | "audio" | "font" | "image" | "script" | "style" | "track" | "video";
|
||||
type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";
|
||||
type ScopedCredentialType = "ScopedCred";
|
||||
type ServiceWorkerState = "installing" | "installed" | "activating" | "activated" | "redundant";
|
||||
type Transport = "usb" | "nfc" | "ble";
|
||||
type VideoFacingModeEnum = "user" | "environment" | "left" | "right";
|
||||
type VisibilityState = "hidden" | "visible" | "prerender" | "unloaded";
|
||||
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
|
||||
161
src/lib/webworker.generated.d.ts
vendored
161
src/lib/webworker.generated.d.ts
vendored
@ -54,13 +54,17 @@ interface MessageEventInit extends EventInit {
|
||||
}
|
||||
|
||||
interface NotificationOptions {
|
||||
dir?: string;
|
||||
dir?: NotificationDirection;
|
||||
lang?: string;
|
||||
body?: string;
|
||||
tag?: string;
|
||||
icon?: string;
|
||||
}
|
||||
|
||||
interface ObjectURLOptions {
|
||||
oneTimeOnly?: boolean;
|
||||
}
|
||||
|
||||
interface PushSubscriptionOptionsInit {
|
||||
userVisibleOnly?: boolean;
|
||||
applicationServerKey?: any;
|
||||
@ -71,11 +75,11 @@ interface RequestInit {
|
||||
headers?: any;
|
||||
body?: any;
|
||||
referrer?: string;
|
||||
referrerPolicy?: string;
|
||||
mode?: string;
|
||||
credentials?: string;
|
||||
cache?: string;
|
||||
redirect?: string;
|
||||
referrerPolicy?: ReferrerPolicy;
|
||||
mode?: RequestMode;
|
||||
credentials?: RequestCredentials;
|
||||
cache?: RequestCache;
|
||||
redirect?: RequestRedirect;
|
||||
integrity?: string;
|
||||
keepalive?: boolean;
|
||||
window?: any;
|
||||
@ -89,7 +93,7 @@ interface ResponseInit {
|
||||
|
||||
interface ClientQueryOptions {
|
||||
includeUncontrolled?: boolean;
|
||||
type?: string;
|
||||
type?: ClientType;
|
||||
}
|
||||
|
||||
interface ExtendableEventInit extends EventInit {
|
||||
@ -399,9 +403,9 @@ declare var Event: {
|
||||
}
|
||||
|
||||
interface EventTarget {
|
||||
addEventListener(type: string, listener?: EventListenerOrEventListenerObject, useCapture?: boolean): void;
|
||||
addEventListener(type: string, listener?: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
||||
dispatchEvent(evt: Event): boolean;
|
||||
removeEventListener(type: string, listener?: EventListenerOrEventListenerObject, useCapture?: boolean): void;
|
||||
removeEventListener(type: string, listener?: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
||||
}
|
||||
|
||||
declare var EventTarget: {
|
||||
@ -461,7 +465,7 @@ declare var Headers: {
|
||||
}
|
||||
|
||||
interface IDBCursor {
|
||||
readonly direction: string;
|
||||
readonly direction: IDBCursorDirection;
|
||||
key: IDBKeyRange | IDBValidKey;
|
||||
readonly primaryKey: any;
|
||||
source: IDBObjectStore | IDBIndex;
|
||||
@ -613,7 +617,7 @@ interface IDBRequest extends EventTarget {
|
||||
readonly error: DOMError;
|
||||
onerror: (this: IDBRequest, ev: Event) => any;
|
||||
onsuccess: (this: IDBRequest, ev: Event) => any;
|
||||
readonly readyState: string;
|
||||
readonly readyState: IDBRequestReadyState;
|
||||
readonly result: any;
|
||||
source: IDBObjectStore | IDBIndex | IDBCursor;
|
||||
readonly transaction: IDBTransaction;
|
||||
@ -635,7 +639,7 @@ interface IDBTransactionEventMap {
|
||||
interface IDBTransaction extends EventTarget {
|
||||
readonly db: IDBDatabase;
|
||||
readonly error: DOMError;
|
||||
readonly mode: string;
|
||||
readonly mode: IDBTransactionMode;
|
||||
onabort: (this: IDBTransaction, ev: Event) => any;
|
||||
oncomplete: (this: IDBTransaction, ev: Event) => any;
|
||||
onerror: (this: IDBTransaction, ev: Event) => any;
|
||||
@ -728,14 +732,14 @@ interface NotificationEventMap {
|
||||
|
||||
interface Notification extends EventTarget {
|
||||
readonly body: string;
|
||||
readonly dir: string;
|
||||
readonly dir: NotificationDirection;
|
||||
readonly icon: string;
|
||||
readonly lang: string;
|
||||
onclick: (this: Notification, ev: Event) => any;
|
||||
onclose: (this: Notification, ev: Event) => any;
|
||||
onerror: (this: Notification, ev: Event) => any;
|
||||
onshow: (this: Notification, ev: Event) => any;
|
||||
readonly permission: string;
|
||||
readonly permission: NotificationPermission;
|
||||
readonly tag: string;
|
||||
readonly title: string;
|
||||
close(): void;
|
||||
@ -746,7 +750,7 @@ interface Notification extends EventTarget {
|
||||
declare var Notification: {
|
||||
prototype: Notification;
|
||||
new(title: string, options?: NotificationOptions): Notification;
|
||||
requestPermission(callback?: NotificationPermissionCallback): Promise<string>;
|
||||
requestPermission(callback?: NotificationPermissionCallback): Promise<NotificationPermission>;
|
||||
}
|
||||
|
||||
interface Performance {
|
||||
@ -863,7 +867,7 @@ declare var ProgressEvent: {
|
||||
|
||||
interface PushManager {
|
||||
getSubscription(): Promise<PushSubscription>;
|
||||
permissionState(options?: PushSubscriptionOptionsInit): Promise<string>;
|
||||
permissionState(options?: PushSubscriptionOptionsInit): Promise<PushPermissionState>;
|
||||
subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;
|
||||
}
|
||||
|
||||
@ -875,7 +879,7 @@ declare var PushManager: {
|
||||
interface PushSubscription {
|
||||
readonly endpoint: USVString;
|
||||
readonly options: PushSubscriptionOptions;
|
||||
getKey(name: string): ArrayBuffer | null;
|
||||
getKey(name: PushEncryptionKeyName): ArrayBuffer | null;
|
||||
toJSON(): any;
|
||||
unsubscribe(): Promise<boolean>;
|
||||
}
|
||||
@ -918,18 +922,18 @@ declare var ReadableStreamReader: {
|
||||
}
|
||||
|
||||
interface Request extends Object, Body {
|
||||
readonly cache: string;
|
||||
readonly credentials: string;
|
||||
readonly destination: string;
|
||||
readonly cache: RequestCache;
|
||||
readonly credentials: RequestCredentials;
|
||||
readonly destination: RequestDestination;
|
||||
readonly headers: Headers;
|
||||
readonly integrity: string;
|
||||
readonly keepalive: boolean;
|
||||
readonly method: string;
|
||||
readonly mode: string;
|
||||
readonly redirect: string;
|
||||
readonly mode: RequestMode;
|
||||
readonly redirect: RequestRedirect;
|
||||
readonly referrer: string;
|
||||
readonly referrerPolicy: string;
|
||||
readonly type: string;
|
||||
readonly referrerPolicy: ReferrerPolicy;
|
||||
readonly type: RequestType;
|
||||
readonly url: string;
|
||||
clone(): Request;
|
||||
}
|
||||
@ -945,7 +949,7 @@ interface Response extends Object, Body {
|
||||
readonly ok: boolean;
|
||||
readonly status: number;
|
||||
readonly statusText: string;
|
||||
readonly type: string;
|
||||
readonly type: ResponseType;
|
||||
readonly url: string;
|
||||
clone(): Response;
|
||||
}
|
||||
@ -962,7 +966,7 @@ interface ServiceWorkerEventMap extends AbstractWorkerEventMap {
|
||||
interface ServiceWorker extends EventTarget, AbstractWorker {
|
||||
onstatechange: (this: ServiceWorker, ev: Event) => any;
|
||||
readonly scriptURL: USVString;
|
||||
readonly state: string;
|
||||
readonly state: ServiceWorkerState;
|
||||
postMessage(message: any, transfer?: any[]): void;
|
||||
addEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, useCapture?: boolean): void;
|
||||
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
|
||||
@ -1008,6 +1012,29 @@ declare var SyncManager: {
|
||||
new(): SyncManager;
|
||||
}
|
||||
|
||||
interface URL {
|
||||
hash: string;
|
||||
host: string;
|
||||
hostname: string;
|
||||
href: string;
|
||||
readonly origin: string;
|
||||
password: string;
|
||||
pathname: string;
|
||||
port: string;
|
||||
protocol: string;
|
||||
search: string;
|
||||
username: string;
|
||||
readonly searchParams: URLSearchParams;
|
||||
toString(): string;
|
||||
}
|
||||
|
||||
declare var URL: {
|
||||
prototype: URL;
|
||||
new(url: string, base?: string): URL;
|
||||
createObjectURL(object: any, options?: ObjectURLOptions): string;
|
||||
revokeObjectURL(url: string): void;
|
||||
}
|
||||
|
||||
interface WebSocketEventMap {
|
||||
"close": CloseEvent;
|
||||
"error": Event;
|
||||
@ -1071,7 +1098,7 @@ interface XMLHttpRequest extends EventTarget, XMLHttpRequestEventTarget {
|
||||
readonly readyState: number;
|
||||
readonly response: any;
|
||||
readonly responseText: string;
|
||||
responseType: string;
|
||||
responseType: XMLHttpRequestResponseType;
|
||||
readonly responseURL: string;
|
||||
readonly responseXML: any;
|
||||
readonly status: number;
|
||||
@ -1222,7 +1249,7 @@ interface XMLHttpRequestEventTarget {
|
||||
}
|
||||
|
||||
interface Client {
|
||||
readonly frameType: string;
|
||||
readonly frameType: FrameType;
|
||||
readonly id: string;
|
||||
readonly url: USVString;
|
||||
postMessage(message: any, transfer?: any[]): void;
|
||||
@ -1385,7 +1412,7 @@ declare var SyncEvent: {
|
||||
|
||||
interface WindowClient extends Client {
|
||||
readonly focused: boolean;
|
||||
readonly visibilityState: string;
|
||||
readonly visibilityState: VisibilityState;
|
||||
focus(): Promise<WindowClient>;
|
||||
navigate(url: USVString): Promise<WindowClient>;
|
||||
}
|
||||
@ -1484,6 +1511,41 @@ interface ImageBitmap {
|
||||
close(): void;
|
||||
}
|
||||
|
||||
interface URLSearchParams {
|
||||
/**
|
||||
* Appends a specified key/value pair as a new search parameter.
|
||||
*/
|
||||
append(name: string, value: string): void;
|
||||
/**
|
||||
* Deletes the given search parameter, and its associated value, from the list of all search parameters.
|
||||
*/
|
||||
delete(name: string): void;
|
||||
/**
|
||||
* Returns the first value associated to the given search parameter.
|
||||
*/
|
||||
get(name: string): string | null;
|
||||
/**
|
||||
* Returns all the values association with a given search parameter.
|
||||
*/
|
||||
getAll(name: string): string[];
|
||||
/**
|
||||
* Returns a Boolean indicating if such a search parameter exists.
|
||||
*/
|
||||
has(name: string): boolean;
|
||||
/**
|
||||
* Sets the value associated to a given search parameter to the given value. If there were several values, delete the others.
|
||||
*/
|
||||
set(name: string, value: string): void;
|
||||
}
|
||||
|
||||
declare var URLSearchParams: {
|
||||
prototype: URLSearchParams;
|
||||
/**
|
||||
* Constructor returning a URLSearchParams object.
|
||||
*/
|
||||
new (init?: string | URLSearchParams): URLSearchParams;
|
||||
}
|
||||
|
||||
interface BlobPropertyBag {
|
||||
type?: string;
|
||||
endings?: string;
|
||||
@ -1678,6 +1740,15 @@ interface JsonWebKey {
|
||||
k?: string;
|
||||
}
|
||||
|
||||
interface EventListenerOptions {
|
||||
capture?: boolean;
|
||||
}
|
||||
|
||||
interface AddEventListenerOptions extends EventListenerOptions {
|
||||
passive?: boolean;
|
||||
once?: boolean;
|
||||
}
|
||||
|
||||
declare type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
|
||||
|
||||
interface ErrorEventHandler {
|
||||
@ -1699,10 +1770,10 @@ interface FunctionStringCallback {
|
||||
(data: string): void;
|
||||
}
|
||||
interface ForEachCallback {
|
||||
(keyId: any, status: string): void;
|
||||
(keyId: any, status: MediaKeyStatus): void;
|
||||
}
|
||||
interface NotificationPermissionCallback {
|
||||
(permission: string): void;
|
||||
(permission: NotificationPermission): void;
|
||||
}
|
||||
declare var onmessage: (this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any;
|
||||
declare function close(): void;
|
||||
@ -1717,7 +1788,7 @@ declare function msWriteProfilerMark(profilerMarkName: string): void;
|
||||
declare function createImageBitmap(image: ImageBitmap | ImageData | Blob, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
||||
declare function createImageBitmap(image: ImageBitmap | ImageData | Blob, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
||||
declare function dispatchEvent(evt: Event): boolean;
|
||||
declare function removeEventListener(type: string, listener?: EventListenerOrEventListenerObject, useCapture?: boolean): void;
|
||||
declare function removeEventListener(type: string, listener?: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
||||
declare var indexedDB: IDBFactory;
|
||||
declare var msIndexedDB: IDBFactory;
|
||||
declare var navigator: WorkerNavigator;
|
||||
@ -1736,7 +1807,7 @@ declare function btoa(rawString: string): string;
|
||||
declare var console: Console;
|
||||
declare function fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
|
||||
declare function dispatchEvent(evt: Event): boolean;
|
||||
declare function removeEventListener(type: string, listener?: EventListenerOrEventListenerObject, useCapture?: boolean): void;
|
||||
declare function removeEventListener(type: string, listener?: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
||||
declare function addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, useCapture?: boolean): void;
|
||||
declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
|
||||
type AlgorithmIdentifier = string | Algorithm;
|
||||
@ -1745,4 +1816,26 @@ type IDBKeyPath = string;
|
||||
type RequestInfo = Request | string;
|
||||
type USVString = string;
|
||||
type IDBValidKey = number | string | Date | IDBArrayKey;
|
||||
type BufferSource = ArrayBuffer | ArrayBufferView;
|
||||
type BufferSource = ArrayBuffer | ArrayBufferView;
|
||||
type FormDataEntryValue = string | File;
|
||||
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
|
||||
type IDBRequestReadyState = "pending" | "done";
|
||||
type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
|
||||
type MediaKeyStatus = "usable" | "expired" | "output-downscaled" | "output-not-allowed" | "status-pending" | "internal-error";
|
||||
type NotificationDirection = "auto" | "ltr" | "rtl";
|
||||
type NotificationPermission = "default" | "denied" | "granted";
|
||||
type PushEncryptionKeyName = "p256dh" | "auth";
|
||||
type PushPermissionState = "granted" | "denied" | "prompt";
|
||||
type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin-only" | "origin-when-cross-origin" | "unsafe-url";
|
||||
type RequestCache = "default" | "no-store" | "reload" | "no-cache" | "force-cache";
|
||||
type RequestCredentials = "omit" | "same-origin" | "include";
|
||||
type RequestDestination = "" | "document" | "sharedworker" | "subresource" | "unknown" | "worker";
|
||||
type RequestMode = "navigate" | "same-origin" | "no-cors" | "cors";
|
||||
type RequestRedirect = "follow" | "error" | "manual";
|
||||
type RequestType = "" | "audio" | "font" | "image" | "script" | "style" | "track" | "video";
|
||||
type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";
|
||||
type ServiceWorkerState = "installing" | "installed" | "activating" | "activated" | "redundant";
|
||||
type VisibilityState = "hidden" | "visible" | "prerender" | "unloaded";
|
||||
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
|
||||
type ClientType = "window" | "worker" | "sharedworker" | "all";
|
||||
type FrameType = "auxiliary" | "top-level" | "nested" | "none";
|
||||
Loading…
x
Reference in New Issue
Block a user