From 1504c92fca4feb57a61a6ab762abe93ae190a5f5 Mon Sep 17 00:00:00 2001 From: zhengbli Date: Tue, 28 Feb 2017 18:02:41 -0800 Subject: [PATCH 01/10] Make event listeners work --- TS.fsx | 64 ++++++++++++++++++++------- baselines/dom.generated.d.ts | 14 +++--- inputfiles/addedTypes.json | 4 +- inputfiles/knownWorkerInterfaces.json | 4 ++ inputfiles/overridingTypes.json | 19 ++++++++ inputfiles/sample.json | 5 +++ 6 files changed, 86 insertions(+), 24 deletions(-) diff --git a/TS.fsx b/TS.fsx index 755dc8be1..cbe4c12bf 100644 --- a/TS.fsx +++ b/TS.fsx @@ -159,6 +159,7 @@ module InputJson = | SignatureOverload | TypeDef | Extends + | InterfaceDeclarationName override x.ToString() = match x with | Property _ -> "property" @@ -171,6 +172,7 @@ module InputJson = | SignatureOverload _ -> "signatureoverload" | TypeDef _ -> "typedef" | Extends _ -> "extends" + | InterfaceDeclarationName -> "interfacedeclarationname" let getItemByName (allItems: InputJsonType.Root []) (itemName: string) (kind: ItemKind) otherFilter = let filter (item: InputJsonType.Root) = @@ -698,7 +700,7 @@ module Emit = | "DOMString" -> "string" | "DOMTimeStamp" -> "number" | "EndOfStreamError" -> "number" - | "EventListener" -> "EventListenerOrEventListenerObject" + | "EventListener" -> "EventListenerOrEventListenerObject" | "double" | "float" -> "number" | "Function" -> "Function" | "long" | "long long" | "signed long" | "signed long long" | "unsigned long" | "unsigned long long" -> "number" @@ -854,8 +856,17 @@ module Emit = String.Join(", ", (List.map paramToString ps)) let EmitCallBackInterface (i:Browser.Interface) = - Pt.Printl "interface %s {" i.Name - Pt.PrintWithAddedIndent "(evt: Event): void;" + if i.Name = "EventListener" then + Pt.Printl "interface %s {" i.Name + Pt.PrintWithAddedIndent "(evt: Event): void;" + else + Pt.Printl "interface %s {" i.Name + let handleEventMethod = i.Methods.Value.Methods |> Array.find (fun m -> m.Name.Value = "handleEvent") + let paramList = + [for p in handleEventMethod.Params do + yield {Type = p.Type; Name = p.Name; Optional = p.Optional.IsSome; Variadic = p.Variadic.IsSome; Nullable = p.Nullable.IsSome}] + Pt.PrintWithAddedIndent "(%s): void;" (ParamsToString paramList) + Pt.Printl "}" Pt.Printl "" @@ -968,7 +979,7 @@ module Emit = matchScope emitScope m && not (prefix <> "" && OptionCheckValue "addEventListener" m.Name) - let emitMethod flavor prefix (i:Browser.Interface) (m:Browser.Method) = + let emitMethod flavor (prefix: string) (i:Browser.Interface) (m:Browser.Method) = let printLine content = if m.Name.IsSome && conflictedMembers.Contains m.Name.Value then Pt.PrintlToStack content else Pt.Printl content // print comment @@ -982,6 +993,13 @@ module Emit = let removedType = Option.bind (fun name -> InputJson.getRemovedItemByName name InputJson.ItemKind.Method i.Name) m.Name let overridenType = Option.bind (fun mName -> InputJson.getOverriddenItemByName mName InputJson.ItemKind.Method i.Name) m.Name + let replaceThisWithGlobalPollutor (signature: string) = + if prefix.StartsWith "declare " then + let regex = Regex(@"\bthis\b") + regex.Replace(signature, GetGlobalPollutorName flavor) + else + signature + if removedType.IsNone then match overridenType with | Some t -> @@ -1005,7 +1023,7 @@ module Emit = let overloads = GetOverloads (Function.Method m) false for { ParamCombinations = pCombList; ReturnTypes = rTypes; Nullable = isNullable } in overloads do - let paramsString = ParamsToString pCombList + let paramsString = ParamsToString pCombList |> replaceThisWithGlobalPollutor let returnString = let returnType = rTypes |> List.map DomTypeToTsType |> String.concat " | " if isNullable then makeNullable returnType else returnType @@ -1057,8 +1075,14 @@ module Emit = "%saddEventListener(type: K, listener: (this: %s, ev: %sEventMap[K]) => any, useCapture?: boolean): void;" prefix iParent.Name i.Name iParent.Name + // these types are only mixins to define shared events, they don't extend the EventTarget interface, therefore no need to + // emit "addEventListener" for them + let specialTypes = ["GlobalEventHandlers"; "AbstractWorker"; "XMLHttpRequestEventTarget"; "MSBaseReader"] + let shouldEmitStringEventHandler = - if iNameToEhList.ContainsKey i.Name && not iNameToEhList.[i.Name].IsEmpty then + if List.contains i.Name specialTypes then + false + elif iNameToEhList.ContainsKey i.Name && not iNameToEhList.[i.Name].IsEmpty then emitEventHandler fPrefix i true elif iNameToEhParents.ContainsKey i.Name && not iNameToEhParents.[i.Name].IsEmpty then @@ -1071,8 +1095,8 @@ module Emit = if shouldEmitStringEventHandler then Pt.Printl - "%saddEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;" - fPrefix + "%saddEventListener(type: string, listener: EventListenerOrEventListenerObject<%s>, useCapture?: boolean): void;" + fPrefix (if fPrefix = "" then "this" else GetGlobalPollutorName flavor) let EmitConstructorSignature (i:Browser.Interface) = let emitConstructorSigFromJson (c: InputJsonType.Root) = @@ -1123,16 +1147,26 @@ module Emit = Pt.Printl "declare var %s: {new(%s): %s; };" nc.Name (ParamsToString ncParams) i.Name) let EmitInterfaceDeclaration (i:Browser.Interface) = - let processIName iName = + let getOverridenNameIfAny iName = + let overridenIName = InputJson.getOverriddenItemsByInterfaceName InputJson.InterfaceDeclarationName Flavor.All i.Name |> Array.tryHead + match overridenIName with + | Some item -> item.NewName.Value + | _ -> iName + + let generateBaseTypeNameIfNecessary iName = match Map.tryFind iName extendConflictsBaseTypes with | Some _ -> iName + "Base" | _ -> iName - let processedIName = processIName i.Name - if processedIName <> i.Name then - Pt.PrintlToStack "interface %s extends %s {" i.Name processedIName + let finalIName = getOverridenNameIfAny i.Name + + let baseTypeName = generateBaseTypeNameIfNecessary i.Name + if baseTypeName <> i.Name then + Pt.PrintlToStack "interface %s extends %s {" finalIName baseTypeName + Pt.Printl "interface %s" baseTypeName + else + Pt.Printl "interface %s" finalIName - Pt.Printl "interface %s" processedIName let finalExtends = let overridenExtendsFromJson = InputJson.getOverriddenItemsByInterfaceName ItemKind.Extends Flavor.All i.Name @@ -1151,7 +1185,7 @@ module Emit = else overridenExtendsFromJson - combinedExtends |> List.map processIName + combinedExtends |> List.map generateBaseTypeNameIfNecessary match finalExtends with | [] -> () @@ -1466,7 +1500,7 @@ module Emit = // Add missed interface definition from the spec InputJson.getAddedItems InputJson.Interface flavor |> Array.iter EmitAddedInterface - Pt.Printl "declare type EventListenerOrEventListenerObject = EventListener | EventListenerObject;" + Pt.Printl "declare type EventListenerOrEventListenerObject = EventListener | EventListenerObject;" Pt.Printl "" EmitCallBackFunctions flavor diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index 6099f2e41..0564e6063 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -1167,8 +1167,8 @@ interface WheelEventInit extends MouseEventInit { deltaMode?: number; } -interface EventListener { - (evt: Event): void; +interface EventListener { + (evt: Event): void; } interface WebKitEntriesCallback { @@ -3545,7 +3545,7 @@ interface ElementEventMap extends GlobalEventHandlersEventMap { "webkitfullscreenerror": Event; } -interface Element extends Node, GlobalEventHandlers, ElementTraversal, NodeSelector, ChildNode, ParentNode { +interface Element extends Node, GlobalEventHandlers, ElementTraversal, NodeSelector, ChildNode, ParentNode, EventTarget { readonly classList: DOMTokenList; className: string; readonly clientHeight: number; @@ -3663,17 +3663,17 @@ declare var ErrorEvent: { new(type: string, errorEventInitDict?: ErrorEventInit): ErrorEvent; } -interface Event { +interface Event { readonly bubbles: boolean; cancelBubble: boolean; readonly cancelable: boolean; - readonly currentTarget: EventTarget; + readonly currentTarget: T; readonly defaultPrevented: boolean; readonly eventPhase: number; readonly isTrusted: boolean; returnValue: boolean; readonly srcElement: Element | null; - readonly target: EventTarget; + readonly target: T; readonly timeStamp: number; readonly type: string; readonly scoped: boolean; @@ -14148,7 +14148,7 @@ interface PromiseRejectionEventInit extends EventInit { reason?: any; } -declare type EventListenerOrEventListenerObject = EventListener | EventListenerObject; +declare type EventListenerOrEventListenerObject = EventListener | EventListenerObject; interface ErrorEventHandler { (message: string, filename?: string, lineno?: number, colno?: number, error?:Error): void; diff --git a/inputfiles/addedTypes.json b/inputfiles/addedTypes.json index 8ead084ed..6e90700c3 100644 --- a/inputfiles/addedTypes.json +++ b/inputfiles/addedTypes.json @@ -230,11 +230,11 @@ }, { "kind": "interface", - "name": "EventListenerObject", + "name": "EventListenerObject", "methods": [ { "name": "handleEvent", - "signatures": ["handleEvent(evt: Event): void"] + "signatures": ["handleEvent(evt: Event): void"] } ] }, diff --git a/inputfiles/knownWorkerInterfaces.json b/inputfiles/knownWorkerInterfaces.json index a56aea3ed..4690060ef 100644 --- a/inputfiles/knownWorkerInterfaces.json +++ b/inputfiles/knownWorkerInterfaces.json @@ -92,6 +92,10 @@ "SyncManager", "USVString", "WebSocket", + "WebKitDirectoryEntry", + "WebKitDirectoryReader", + "WebKitEntry", + "WebKitFileSystem", "WindowBase64", "WindowConsole", "Worker", diff --git a/inputfiles/overridingTypes.json b/inputfiles/overridingTypes.json index 43170270b..09c90d2e1 100644 --- a/inputfiles/overridingTypes.json +++ b/inputfiles/overridingTypes.json @@ -991,5 +991,24 @@ "interface": "DOMImplementation", "name": "hasFeature", "signatures": ["hasFeature(feature: string | null, version: string | null): boolean"] + }, + { + "kind": "interfaceDeclarationName", + "interface": "Event", + "newName": "Event" + }, + { + "kind": "property", + "interface": "Event", + "name": "currentTarget", + "readonly": true, + "type": "T" + }, + { + "kind": "property", + "interface": "Event", + "name": "target", + "readonly": true, + "type": "T" } ] diff --git a/inputfiles/sample.json b/inputfiles/sample.json index d516ad12f..2632104b2 100644 --- a/inputfiles/sample.json +++ b/inputfiles/sample.json @@ -348,5 +348,10 @@ "type": "HTMLCollection" } ] + }, + { + "kind": "interfaceDeclarationName", + "interface": "Event", + "newName": "Event" } ] From 1b10ce8594ffb0a65e43e97a5e0b8b493b5b1f20 Mon Sep 17 00:00:00 2001 From: zhengbli Date: Tue, 28 Feb 2017 18:32:19 -0800 Subject: [PATCH 02/10] Make more events generic --- TS.fsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/TS.fsx b/TS.fsx index cbe4c12bf..49ed4a801 100644 --- a/TS.fsx +++ b/TS.fsx @@ -1163,9 +1163,9 @@ module Emit = let baseTypeName = generateBaseTypeNameIfNecessary i.Name if baseTypeName <> i.Name then Pt.PrintlToStack "interface %s extends %s {" finalIName baseTypeName - Pt.Printl "interface %s" baseTypeName + Pt.Print "interface %s" baseTypeName else - Pt.Printl "interface %s" finalIName + Pt.Print "interface %s" finalIName let finalExtends = let overridenExtendsFromJson = @@ -1189,7 +1189,10 @@ module Emit = match finalExtends with | [] -> () - | allExtends -> Pt.Print " extends %s" (String.Join(", ", allExtends)) + | allExtends -> + let eventTypeParameter = if List.contains "Event" allExtends then "" else "" + let extendsToPrint = allExtends |> List.map (fun extends -> if extends = "Event" then "Event" else extends) + Pt.Print "%s extends %s" eventTypeParameter (String.Join(", ", extendsToPrint)) Pt.Print " {" /// To decide if a given method is an indexer and should be emited From 84d2094f23968e62f7a9d73e267b713c33e5ae0e Mon Sep 17 00:00:00 2001 From: zhengbli Date: Tue, 28 Feb 2017 18:45:36 -0800 Subject: [PATCH 03/10] Support more events --- TS.fsx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/TS.fsx b/TS.fsx index 49ed4a801..e61d3e234 100644 --- a/TS.fsx +++ b/TS.fsx @@ -1189,10 +1189,13 @@ module Emit = match finalExtends with | [] -> () - | allExtends -> - let eventTypeParameter = if List.contains "Event" allExtends then "" else "" - let extendsToPrint = allExtends |> List.map (fun extends -> if extends = "Event" then "Event" else extends) - Pt.Print "%s extends %s" eventTypeParameter (String.Join(", ", extendsToPrint)) + | allExtends -> + if IsDependsOn i.Name "Event" then + let extendsToPrint = allExtends |> List.map (fun extends -> if extends = "Event" || IsDependsOn extends "Event" then extends + "" else extends) + Pt.Print " extends %s" (String.Join(", ", extendsToPrint)) + else + Pt.Print " extends %s" (String.Join(", ", allExtends)) + Pt.Print " {" /// To decide if a given method is an indexer and should be emited From 8bc5d6d4929a0ef6a6a3d650dcc9a0cd9d3b50bd Mon Sep 17 00:00:00 2001 From: zhengbli Date: Tue, 28 Feb 2017 18:59:41 -0800 Subject: [PATCH 04/10] Make events use 'this' as eventTarget when possible --- TS.fsx | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/TS.fsx b/TS.fsx index e61d3e234..31dd345cc 100644 --- a/TS.fsx +++ b/TS.fsx @@ -672,6 +672,10 @@ module Data = let extendConflictsBaseTypes = extendConflicts |> List.map (fun ec -> (ec.BaseType, ec)) |> Map.ofList + // these types are only mixins to define shared events, they don't extend the EventTarget interface, therefore no need to + // emit "addEventListener" for them + let nonEventTargetTypes = ["GlobalEventHandlers"; "AbstractWorker"; "XMLHttpRequestEventTarget"; "MSBaseReader"] + module Emit = open Data open Types @@ -903,6 +907,11 @@ module Emit = | Some pollutor -> "this: " + pollutor.Name + ", " | _ -> "" + let ComputerEventTypeParameter eventType flavor (prefix: string) = + if List.contains eventType nonEventTargetTypes then "" + else + if prefix.StartsWith("declare ") then "<" + GetGlobalPollutorName flavor + ">" else "" + let EmitProperties flavor prefix (emitScope: EmitScope) (i: Browser.Interface) (conflictedMembers: Set) = let emitPropertyFromJson (p: InputJsonType.Root) = let readOnlyModifier = @@ -939,7 +948,11 @@ module Emit = getEventTypeInInterface p.EventHandler.Value i else "Event" - String.Format("({0}ev: {1}) => any", EmitEventHandlerThis flavor prefix i, eType) + String.Format( + "({0}ev: {1}{2}) => any", + EmitEventHandlerThis flavor prefix i, + eType, + ComputerEventTypeParameter i.Name flavor prefix) | _ -> DomTypeToTsType p.Type let pTypeAndNull = if p.Nullable.IsSome then makeNullable pType else pType let readOnlyModifier = if p.ReadOnly.IsSome && prefix = "" then "readonly " else "" @@ -1075,12 +1088,8 @@ module Emit = "%saddEventListener(type: K, listener: (this: %s, ev: %sEventMap[K]) => any, useCapture?: boolean): void;" prefix iParent.Name i.Name iParent.Name - // these types are only mixins to define shared events, they don't extend the EventTarget interface, therefore no need to - // emit "addEventListener" for them - let specialTypes = ["GlobalEventHandlers"; "AbstractWorker"; "XMLHttpRequestEventTarget"; "MSBaseReader"] - let shouldEmitStringEventHandler = - if List.contains i.Name specialTypes then + if List.contains i.Name nonEventTargetTypes then false elif iNameToEhList.ContainsKey i.Name && not iNameToEhList.[i.Name].IsEmpty then emitEventHandler fPrefix i From cfc851362436650bfb12217403d89644fe22c58b Mon Sep 17 00:00:00 2001 From: zhengbli Date: Tue, 28 Feb 2017 19:34:09 -0800 Subject: [PATCH 05/10] Do the same thing for nonEventTarget base types --- TS.fsx | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/TS.fsx b/TS.fsx index 31dd345cc..fada8ae9a 100644 --- a/TS.fsx +++ b/TS.fsx @@ -907,10 +907,10 @@ module Emit = | Some pollutor -> "this: " + pollutor.Name + ", " | _ -> "" - let ComputerEventTypeParameter eventType flavor (prefix: string) = - if List.contains eventType nonEventTargetTypes then "" - else - if prefix.StartsWith("declare ") then "<" + GetGlobalPollutorName flavor + ">" else "" + let ComputeEventTypeParameter eventType flavor (prefix: string) = + if prefix.StartsWith("declare ") then "<" + GetGlobalPollutorName flavor + ">" + elif List.contains eventType nonEventTargetTypes then "" + else "" let EmitProperties flavor prefix (emitScope: EmitScope) (i: Browser.Interface) (conflictedMembers: Set) = let emitPropertyFromJson (p: InputJsonType.Root) = @@ -952,7 +952,7 @@ module Emit = "({0}ev: {1}{2}) => any", EmitEventHandlerThis flavor prefix i, eType, - ComputerEventTypeParameter i.Name flavor prefix) + ComputeEventTypeParameter i.Name flavor prefix) | _ -> DomTypeToTsType p.Type let pTypeAndNull = if p.Nullable.IsSome then makeNullable pType else pType let readOnlyModifier = if p.ReadOnly.IsSome && prefix = "" then "readonly " else "" @@ -1197,13 +1197,18 @@ module Emit = combinedExtends |> List.map generateBaseTypeNameIfNecessary match finalExtends with - | [] -> () + | [] -> + if List.contains i.Name nonEventTargetTypes then + Pt.Print "" | allExtends -> + let mutable typeParameter = "" + let mutable extendsToPrint = allExtends if IsDependsOn i.Name "Event" then - let extendsToPrint = allExtends |> List.map (fun extends -> if extends = "Event" || IsDependsOn extends "Event" then extends + "" else extends) - Pt.Print " extends %s" (String.Join(", ", extendsToPrint)) - else - Pt.Print " extends %s" (String.Join(", ", allExtends)) + typeParameter <- "" + extendsToPrint <- extendsToPrint |> List.map (fun extends -> if extends = "Event" || IsDependsOn extends "Event" then extends + "" else extends) + if IsDependsOn i.Name "EventTarget" then + extendsToPrint <- extendsToPrint |> List.map (fun extends -> if List.contains extends nonEventTargetTypes then extends + "<" + i.Name + ">" else extends) + Pt.Print "%s extends %s" typeParameter (String.Join(", ", extendsToPrint)) Pt.Print " {" From 016f1c5f6e01ca70aee2790fdbb26db42617e205 Mon Sep 17 00:00:00 2001 From: zhengbli Date: Tue, 28 Feb 2017 19:34:34 -0800 Subject: [PATCH 06/10] Update baselines --- baselines/dom.generated.d.ts | 2194 ++++++++++------------------ baselines/webworker.generated.d.ts | 325 ++-- 2 files changed, 947 insertions(+), 1572 deletions(-) diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index 0564e6063..be7d29262 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -1172,17 +1172,16 @@ interface EventListener { } interface WebKitEntriesCallback { - (evt: Event): void; + (entries: WebKitEntry[]): void; } interface WebKitErrorCallback { - (evt: Event): void; + (err: DOMError): void; } interface WebKitFileCallback { - (evt: Event): void; + (file: File): void; } - interface ANGLE_instanced_arrays { drawArraysInstancedANGLE(mode: number, first: number, count: number, primcount: number): void; drawElementsInstancedANGLE(mode: number, count: number, type: number, offset: number, primcount: number): void; @@ -1195,7 +1194,6 @@ declare var ANGLE_instanced_arrays: { new(): ANGLE_instanced_arrays; readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: number; } - interface AnalyserNode extends AudioNode { fftSize: number; readonly frequencyBinCount: number; @@ -1212,8 +1210,7 @@ declare var AnalyserNode: { prototype: AnalyserNode; new(): AnalyserNode; } - -interface AnimationEvent extends Event { +interface AnimationEvent extends Event { readonly animationName: string; readonly elapsedTime: number; initAnimationEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, animationNameArg: string, elapsedTimeArg: number): void; @@ -1234,16 +1231,15 @@ interface ApplicationCacheEventMap { "progress": ProgressEvent; "updateready": Event; } - interface ApplicationCache extends EventTarget { - oncached: (this: ApplicationCache, ev: Event) => any; - onchecking: (this: ApplicationCache, ev: Event) => any; - ondownloading: (this: ApplicationCache, ev: Event) => any; - onerror: (this: ApplicationCache, ev: Event) => any; - onnoupdate: (this: ApplicationCache, ev: Event) => any; - onobsolete: (this: ApplicationCache, ev: Event) => any; - onprogress: (this: ApplicationCache, ev: ProgressEvent) => any; - onupdateready: (this: ApplicationCache, ev: Event) => any; + oncached: (this: ApplicationCache, ev: Event) => any; + onchecking: (this: ApplicationCache, ev: Event) => any; + ondownloading: (this: ApplicationCache, ev: Event) => any; + onerror: (this: ApplicationCache, ev: Event) => any; + onnoupdate: (this: ApplicationCache, ev: Event) => any; + onobsolete: (this: ApplicationCache, ev: Event) => any; + onprogress: (this: ApplicationCache, ev: ProgressEvent) => any; + onupdateready: (this: ApplicationCache, ev: Event) => any; readonly status: number; abort(): void; swapCache(): void; @@ -1255,7 +1251,7 @@ interface ApplicationCache extends EventTarget { readonly UNCACHED: number; readonly UPDATEREADY: number; addEventListener(type: K, listener: (this: ApplicationCache, ev: ApplicationCacheEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var ApplicationCache: { @@ -1268,7 +1264,6 @@ declare var ApplicationCache: { readonly UNCACHED: number; readonly UPDATEREADY: number; } - interface Attr extends Node { readonly name: string; readonly ownerElement: Element; @@ -1281,7 +1276,6 @@ declare var Attr: { prototype: Attr; new(): Attr; } - interface AudioBuffer { readonly duration: number; readonly length: number; @@ -1300,19 +1294,18 @@ declare var AudioBuffer: { interface AudioBufferSourceNodeEventMap { "ended": MediaStreamErrorEvent; } - interface AudioBufferSourceNode extends AudioNode { buffer: AudioBuffer | null; readonly detune: AudioParam; loop: boolean; loopEnd: number; loopStart: number; - onended: (this: AudioBufferSourceNode, ev: MediaStreamErrorEvent) => any; + onended: (this: AudioBufferSourceNode, ev: MediaStreamErrorEvent) => any; readonly playbackRate: AudioParam; start(when?: number, offset?: number, duration?: number): void; stop(when?: number): void; addEventListener(type: K, listener: (this: AudioBufferSourceNode, ev: AudioBufferSourceNodeEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var AudioBufferSourceNode: { @@ -1323,12 +1316,11 @@ declare var AudioBufferSourceNode: { interface AudioContextEventMap { "statechange": Event; } - interface AudioContextBase extends EventTarget { readonly currentTime: number; readonly destination: AudioDestinationNode; readonly listener: AudioListener; - onstatechange: (this: AudioContext, ev: Event) => any; + onstatechange: (this: AudioContext, ev: Event) => any; readonly sampleRate: number; readonly state: string; close(): Promise; @@ -1354,7 +1346,7 @@ interface AudioContextBase extends EventTarget { decodeAudioData(audioData: ArrayBuffer, successCallback?: DecodeSuccessCallback, errorCallback?: DecodeErrorCallback): Promise; resume(): Promise; addEventListener(type: K, listener: (this: AudioContext, ev: AudioContextEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } interface AudioContext extends AudioContextBase { @@ -1365,7 +1357,6 @@ declare var AudioContext: { prototype: AudioContext; new(): AudioContext; } - interface AudioDestinationNode extends AudioNode { readonly maxChannelCount: number; } @@ -1374,7 +1365,6 @@ declare var AudioDestinationNode: { prototype: AudioDestinationNode; new(): AudioDestinationNode; } - interface AudioListener { dopplerFactor: number; speedOfSound: number; @@ -1387,7 +1377,6 @@ declare var AudioListener: { prototype: AudioListener; new(): AudioListener; } - interface AudioNode extends EventTarget { channelCount: number; channelCountMode: string; @@ -1405,7 +1394,6 @@ declare var AudioNode: { prototype: AudioNode; new(): AudioNode; } - interface AudioParam { readonly defaultValue: number; value: number; @@ -1421,8 +1409,7 @@ declare var AudioParam: { prototype: AudioParam; new(): AudioParam; } - -interface AudioProcessingEvent extends Event { +interface AudioProcessingEvent extends Event { readonly inputBuffer: AudioBuffer; readonly outputBuffer: AudioBuffer; readonly playbackTime: number; @@ -1432,7 +1419,6 @@ declare var AudioProcessingEvent: { prototype: AudioProcessingEvent; new(): AudioProcessingEvent; } - interface AudioTrack { enabled: boolean; readonly id: string; @@ -1452,16 +1438,15 @@ interface AudioTrackListEventMap { "change": Event; "removetrack": TrackEvent; } - interface AudioTrackList extends EventTarget { readonly length: number; - onaddtrack: (this: AudioTrackList, ev: TrackEvent) => any; - onchange: (this: AudioTrackList, ev: Event) => any; - onremovetrack: (this: AudioTrackList, ev: TrackEvent) => any; + onaddtrack: (this: AudioTrackList, ev: TrackEvent) => any; + onchange: (this: AudioTrackList, ev: Event) => any; + onremovetrack: (this: AudioTrackList, ev: TrackEvent) => any; getTrackById(id: string): AudioTrack | null; item(index: number): AudioTrack; addEventListener(type: K, listener: (this: AudioTrackList, ev: AudioTrackListEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; [index: number]: AudioTrack; } @@ -1469,7 +1454,6 @@ declare var AudioTrackList: { prototype: AudioTrackList; new(): AudioTrackList; } - interface BarProp { readonly visible: boolean; } @@ -1478,8 +1462,7 @@ declare var BarProp: { prototype: BarProp; new(): BarProp; } - -interface BeforeUnloadEvent extends Event { +interface BeforeUnloadEvent extends Event { returnValue: any; } @@ -1487,7 +1470,6 @@ declare var BeforeUnloadEvent: { prototype: BeforeUnloadEvent; new(): BeforeUnloadEvent; } - interface BiquadFilterNode extends AudioNode { readonly Q: AudioParam; readonly detune: AudioParam; @@ -1501,7 +1483,6 @@ declare var BiquadFilterNode: { prototype: BiquadFilterNode; new(): BiquadFilterNode; } - interface Blob { readonly size: number; readonly type: string; @@ -1514,7 +1495,6 @@ declare var Blob: { prototype: Blob; new (blobParts?: any[], options?: BlobPropertyBag): Blob; } - interface CDATASection extends Text { } @@ -1522,12 +1502,10 @@ declare var CDATASection: { prototype: CDATASection; new(): CDATASection; } - interface CSS { supports(property: string, value?: string): boolean; } declare var CSS: CSS; - interface CSSConditionRule extends CSSGroupingRule { conditionText: string; } @@ -1536,7 +1514,6 @@ declare var CSSConditionRule: { prototype: CSSConditionRule; new(): CSSConditionRule; } - interface CSSFontFaceRule extends CSSRule { readonly style: CSSStyleDeclaration; } @@ -1545,7 +1522,6 @@ declare var CSSFontFaceRule: { prototype: CSSFontFaceRule; new(): CSSFontFaceRule; } - interface CSSGroupingRule extends CSSRule { readonly cssRules: CSSRuleList; deleteRule(index: number): void; @@ -1556,7 +1532,6 @@ declare var CSSGroupingRule: { prototype: CSSGroupingRule; new(): CSSGroupingRule; } - interface CSSImportRule extends CSSRule { readonly href: string; readonly media: MediaList; @@ -1567,7 +1542,6 @@ declare var CSSImportRule: { prototype: CSSImportRule; new(): CSSImportRule; } - interface CSSKeyframeRule extends CSSRule { keyText: string; readonly style: CSSStyleDeclaration; @@ -1577,7 +1551,6 @@ declare var CSSKeyframeRule: { prototype: CSSKeyframeRule; new(): CSSKeyframeRule; } - interface CSSKeyframesRule extends CSSRule { readonly cssRules: CSSRuleList; name: string; @@ -1590,7 +1563,6 @@ declare var CSSKeyframesRule: { prototype: CSSKeyframesRule; new(): CSSKeyframesRule; } - interface CSSMediaRule extends CSSConditionRule { readonly media: MediaList; } @@ -1599,7 +1571,6 @@ declare var CSSMediaRule: { prototype: CSSMediaRule; new(): CSSMediaRule; } - interface CSSNamespaceRule extends CSSRule { readonly namespaceURI: string; readonly prefix: string; @@ -1609,7 +1580,6 @@ declare var CSSNamespaceRule: { prototype: CSSNamespaceRule; new(): CSSNamespaceRule; } - interface CSSPageRule extends CSSRule { readonly pseudoClass: string; readonly selector: string; @@ -1621,7 +1591,6 @@ declare var CSSPageRule: { prototype: CSSPageRule; new(): CSSPageRule; } - interface CSSRule { cssText: string; readonly parentRule: CSSRule; @@ -1657,7 +1626,6 @@ declare var CSSRule: { readonly UNKNOWN_RULE: number; readonly VIEWPORT_RULE: number; } - interface CSSRuleList { readonly length: number; item(index: number): CSSRule; @@ -1668,7 +1636,6 @@ declare var CSSRuleList: { prototype: CSSRuleList; new(): CSSRuleList; } - interface CSSStyleDeclaration { alignContent: string | null; alignItems: string | null; @@ -2029,7 +1996,6 @@ declare var CSSStyleDeclaration: { prototype: CSSStyleDeclaration; new(): CSSStyleDeclaration; } - interface CSSStyleRule extends CSSRule { readonly readOnly: boolean; selectorText: string; @@ -2040,7 +2006,6 @@ declare var CSSStyleRule: { prototype: CSSStyleRule; new(): CSSStyleRule; } - interface CSSStyleSheet extends StyleSheet { readonly cssRules: CSSRuleList; cssText: string; @@ -2066,7 +2031,6 @@ declare var CSSStyleSheet: { prototype: CSSStyleSheet; new(): CSSStyleSheet; } - interface CSSSupportsRule extends CSSConditionRule { } @@ -2074,7 +2038,6 @@ declare var CSSSupportsRule: { prototype: CSSSupportsRule; new(): CSSSupportsRule; } - interface Cache { add(request: RequestInfo): Promise; addAll(requests: RequestInfo[]): Promise; @@ -2089,7 +2052,6 @@ declare var Cache: { prototype: Cache; new(): Cache; } - interface CacheStorage { delete(cacheName: string): Promise; has(cacheName: string): Promise; @@ -2102,7 +2064,6 @@ declare var CacheStorage: { prototype: CacheStorage; new(): CacheStorage; } - interface CanvasGradient { addColorStop(offset: number, color: string): void; } @@ -2111,7 +2072,6 @@ declare var CanvasGradient: { prototype: CanvasGradient; new(): CanvasGradient; } - interface CanvasPattern { setTransform(matrix: SVGMatrix): void; } @@ -2120,7 +2080,6 @@ declare var CanvasPattern: { prototype: CanvasPattern; new(): CanvasPattern; } - interface CanvasRenderingContext2D extends Object, CanvasPathMethods { readonly canvas: HTMLCanvasElement; fillStyle: string | CanvasGradient | CanvasPattern; @@ -2178,7 +2137,6 @@ declare var CanvasRenderingContext2D: { prototype: CanvasRenderingContext2D; new(): CanvasRenderingContext2D; } - interface ChannelMergerNode extends AudioNode { } @@ -2186,7 +2144,6 @@ declare var ChannelMergerNode: { prototype: ChannelMergerNode; new(): ChannelMergerNode; } - interface ChannelSplitterNode extends AudioNode { } @@ -2194,7 +2151,6 @@ declare var ChannelSplitterNode: { prototype: ChannelSplitterNode; new(): ChannelSplitterNode; } - interface CharacterData extends Node, ChildNode { data: string; readonly length: number; @@ -2209,7 +2165,6 @@ declare var CharacterData: { prototype: CharacterData; new(): CharacterData; } - interface ClientRect { bottom: number; readonly height: number; @@ -2223,7 +2178,6 @@ declare var ClientRect: { prototype: ClientRect; new(): ClientRect; } - interface ClientRectList { readonly length: number; item(index: number): ClientRect; @@ -2234,8 +2188,7 @@ declare var ClientRectList: { prototype: ClientRectList; new(): ClientRectList; } - -interface ClipboardEvent extends Event { +interface ClipboardEvent extends Event { readonly clipboardData: DataTransfer; } @@ -2243,8 +2196,7 @@ declare var ClipboardEvent: { prototype: ClipboardEvent; new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent; } - -interface CloseEvent extends Event { +interface CloseEvent extends Event { readonly code: number; readonly reason: string; readonly wasClean: boolean; @@ -2255,7 +2207,6 @@ declare var CloseEvent: { prototype: CloseEvent; new(typeArg: string, eventInitDict?: CloseEventInit): CloseEvent; } - interface Comment extends CharacterData { text: string; } @@ -2264,8 +2215,7 @@ declare var Comment: { prototype: Comment; new(): Comment; } - -interface CompositionEvent extends UIEvent { +interface CompositionEvent extends UIEvent { readonly data: string; readonly locale: string; initCompositionEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, dataArg: string, locale: string): void; @@ -2275,7 +2225,6 @@ declare var CompositionEvent: { prototype: CompositionEvent; new(typeArg: string, eventInitDict?: CompositionEventInit): CompositionEvent; } - interface Console { assert(test?: boolean, message?: string, ...optionalParams: any[]): void; clear(): void; @@ -2305,7 +2254,6 @@ declare var Console: { prototype: Console; new(): Console; } - interface ConvolverNode extends AudioNode { buffer: AudioBuffer | null; normalize: boolean; @@ -2315,7 +2263,6 @@ declare var ConvolverNode: { prototype: ConvolverNode; new(): ConvolverNode; } - interface Coordinates { readonly accuracy: number; readonly altitude: number | null; @@ -2330,7 +2277,6 @@ declare var Coordinates: { prototype: Coordinates; new(): Coordinates; } - interface Crypto extends Object, RandomSource { readonly subtle: SubtleCrypto; } @@ -2339,7 +2285,6 @@ declare var Crypto: { prototype: Crypto; new(): Crypto; } - interface CryptoKey { readonly algorithm: KeyAlgorithm; readonly extractable: boolean; @@ -2351,7 +2296,6 @@ declare var CryptoKey: { prototype: CryptoKey; new(): CryptoKey; } - interface CryptoKeyPair { privateKey: CryptoKey; publicKey: CryptoKey; @@ -2361,8 +2305,7 @@ declare var CryptoKeyPair: { prototype: CryptoKeyPair; new(): CryptoKeyPair; } - -interface CustomEvent extends Event { +interface CustomEvent extends Event { readonly detail: any; initCustomEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, detailArg: any): void; } @@ -2371,7 +2314,6 @@ declare var CustomEvent: { prototype: CustomEvent; new(typeArg: string, eventInitDict?: CustomEventInit): CustomEvent; } - interface DOMError { readonly name: string; toString(): string; @@ -2381,7 +2323,6 @@ declare var DOMError: { prototype: DOMError; new(): DOMError; } - interface DOMException { readonly code: number; readonly message: string; @@ -2447,7 +2388,6 @@ declare var DOMException: { readonly VALIDATION_ERR: number; readonly WRONG_DOCUMENT_ERR: number; } - interface DOMImplementation { createDocument(namespaceURI: string | null, qualifiedName: string | null, doctype: DocumentType): Document; createDocumentType(qualifiedName: string, publicId: string, systemId: string): DocumentType; @@ -2459,7 +2399,6 @@ declare var DOMImplementation: { prototype: DOMImplementation; new(): DOMImplementation; } - interface DOMParser { parseFromString(source: string, mimeType: string): Document; } @@ -2468,7 +2407,6 @@ declare var DOMParser: { prototype: DOMParser; new(): DOMParser; } - interface DOMSettableTokenList extends DOMTokenList { value: string; } @@ -2477,7 +2415,6 @@ declare var DOMSettableTokenList: { prototype: DOMSettableTokenList; new(): DOMSettableTokenList; } - interface DOMStringList { readonly length: number; contains(str: string): boolean; @@ -2489,7 +2426,6 @@ declare var DOMStringList: { prototype: DOMStringList; new(): DOMStringList; } - interface DOMStringMap { [name: string]: string | undefined; } @@ -2498,7 +2434,6 @@ declare var DOMStringMap: { prototype: DOMStringMap; new(): DOMStringMap; } - interface DOMTokenList { readonly length: number; add(...token: string[]): void; @@ -2514,18 +2449,16 @@ declare var DOMTokenList: { prototype: DOMTokenList; new(): DOMTokenList; } - interface DataCue extends TextTrackCue { data: ArrayBuffer; addEventListener(type: K, listener: (this: DataCue, ev: TextTrackCueEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var DataCue: { prototype: DataCue; new(): DataCue; } - interface DataTransfer { dropEffect: string; effectAllowed: string; @@ -2541,7 +2474,6 @@ declare var DataTransfer: { prototype: DataTransfer; new(): DataTransfer; } - interface DataTransferItem { readonly kind: string; readonly type: string; @@ -2554,7 +2486,6 @@ declare var DataTransferItem: { prototype: DataTransferItem; new(): DataTransferItem; } - interface DataTransferItemList { readonly length: number; add(data: File): DataTransferItem | null; @@ -2568,7 +2499,6 @@ declare var DataTransferItemList: { prototype: DataTransferItemList; new(): DataTransferItemList; } - interface DeferredPermissionRequest { readonly id: number; readonly type: string; @@ -2581,7 +2511,6 @@ declare var DeferredPermissionRequest: { prototype: DeferredPermissionRequest; new(): DeferredPermissionRequest; } - interface DelayNode extends AudioNode { readonly delayTime: AudioParam; } @@ -2590,7 +2519,6 @@ declare var DelayNode: { prototype: DelayNode; new(): DelayNode; } - interface DeviceAcceleration { readonly x: number | null; readonly y: number | null; @@ -2601,8 +2529,7 @@ declare var DeviceAcceleration: { prototype: DeviceAcceleration; new(): DeviceAcceleration; } - -interface DeviceLightEvent extends Event { +interface DeviceLightEvent extends Event { readonly value: number; } @@ -2610,8 +2537,7 @@ declare var DeviceLightEvent: { prototype: DeviceLightEvent; new(typeArg: string, eventInitDict?: DeviceLightEventInit): DeviceLightEvent; } - -interface DeviceMotionEvent extends Event { +interface DeviceMotionEvent extends Event { readonly acceleration: DeviceAcceleration | null; readonly accelerationIncludingGravity: DeviceAcceleration | null; readonly interval: number | null; @@ -2623,8 +2549,7 @@ declare var DeviceMotionEvent: { prototype: DeviceMotionEvent; new(typeArg: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent; } - -interface DeviceOrientationEvent extends Event { +interface DeviceOrientationEvent extends Event { readonly absolute: boolean; readonly alpha: number | null; readonly beta: number | null; @@ -2636,7 +2561,6 @@ declare var DeviceOrientationEvent: { prototype: DeviceOrientationEvent; new(typeArg: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent; } - interface DeviceRotationRate { readonly alpha: number | null; readonly beta: number | null; @@ -2738,7 +2662,6 @@ interface DocumentEventMap extends GlobalEventHandlersEventMap { "webkitfullscreenchange": Event; "webkitfullscreenerror": Event; } - interface Document extends Node, GlobalEventHandlers, NodeSelector, DocumentEvent, ParentNode, DocumentOrShadowRoot { /** * Sets or gets the URL for the current document. @@ -2858,294 +2781,294 @@ interface Document extends Node, GlobalEventHandlers, NodeSelector, DocumentEven * Fires when the user aborts the download. * @param ev The event. */ - onabort: (this: Document, ev: UIEvent) => any; + onabort: (this: Document, ev: UIEvent) => any; /** * Fires when the object is set as the active element. * @param ev The event. */ - onactivate: (this: Document, ev: UIEvent) => any; + onactivate: (this: Document, ev: UIEvent) => any; /** * Fires immediately before the object is set as the active element. * @param ev The event. */ - onbeforeactivate: (this: Document, ev: UIEvent) => any; + onbeforeactivate: (this: Document, ev: UIEvent) => any; /** * Fires immediately before the activeElement is changed from the current object to another object in the parent document. * @param ev The event. */ - onbeforedeactivate: (this: Document, ev: UIEvent) => any; + onbeforedeactivate: (this: Document, ev: UIEvent) => any; /** * Fires when the object loses the input focus. * @param ev The focus event. */ - onblur: (this: Document, ev: FocusEvent) => any; + onblur: (this: Document, ev: FocusEvent) => any; /** * Occurs when playback is possible, but would require further buffering. * @param ev The event. */ - oncanplay: (this: Document, ev: Event) => any; - oncanplaythrough: (this: Document, ev: Event) => any; + oncanplay: (this: Document, ev: Event) => any; + oncanplaythrough: (this: Document, ev: Event) => any; /** * Fires when the contents of the object or selection have changed. * @param ev The event. */ - onchange: (this: Document, ev: Event) => any; + onchange: (this: Document, ev: Event) => any; /** * Fires when the user clicks the left mouse button on the object * @param ev The mouse event. */ - onclick: (this: Document, ev: MouseEvent) => any; + onclick: (this: Document, ev: MouseEvent) => any; /** * Fires when the user clicks the right mouse button in the client area, opening the context menu. * @param ev The mouse event. */ - oncontextmenu: (this: Document, ev: PointerEvent) => any; + oncontextmenu: (this: Document, ev: PointerEvent) => any; /** * Fires when the user double-clicks the object. * @param ev The mouse event. */ - ondblclick: (this: Document, ev: MouseEvent) => any; + ondblclick: (this: Document, ev: MouseEvent) => any; /** * Fires when the activeElement is changed from the current object to another object in the parent document. * @param ev The UI Event */ - ondeactivate: (this: Document, ev: UIEvent) => any; + ondeactivate: (this: Document, ev: UIEvent) => any; /** * Fires on the source object continuously during a drag operation. * @param ev The event. */ - ondrag: (this: Document, ev: DragEvent) => any; + ondrag: (this: Document, ev: DragEvent) => any; /** * Fires on the source object when the user releases the mouse at the close of a drag operation. * @param ev The event. */ - ondragend: (this: Document, ev: DragEvent) => any; + ondragend: (this: Document, ev: DragEvent) => any; /** * Fires on the target element when the user drags the object to a valid drop target. * @param ev The drag event. */ - ondragenter: (this: Document, ev: DragEvent) => any; + ondragenter: (this: Document, ev: DragEvent) => any; /** * Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation. * @param ev The drag event. */ - ondragleave: (this: Document, ev: DragEvent) => any; + ondragleave: (this: Document, ev: DragEvent) => any; /** * Fires on the target element continuously while the user drags the object over a valid drop target. * @param ev The event. */ - ondragover: (this: Document, ev: DragEvent) => any; + ondragover: (this: Document, ev: DragEvent) => any; /** * Fires on the source object when the user starts to drag a text selection or selected object. * @param ev The event. */ - ondragstart: (this: Document, ev: DragEvent) => any; - ondrop: (this: Document, ev: DragEvent) => any; + ondragstart: (this: Document, ev: DragEvent) => any; + ondrop: (this: Document, ev: DragEvent) => any; /** * Occurs when the duration attribute is updated. * @param ev The event. */ - ondurationchange: (this: Document, ev: Event) => any; + ondurationchange: (this: Document, ev: Event) => any; /** * Occurs when the media element is reset to its initial state. * @param ev The event. */ - onemptied: (this: Document, ev: Event) => any; + onemptied: (this: Document, ev: Event) => any; /** * Occurs when the end of playback is reached. * @param ev The event */ - onended: (this: Document, ev: MediaStreamErrorEvent) => any; + onended: (this: Document, ev: MediaStreamErrorEvent) => any; /** * Fires when an error occurs during object loading. * @param ev The event. */ - onerror: (this: Document, ev: ErrorEvent) => any; + onerror: (this: Document, ev: ErrorEvent) => any; /** * Fires when the object receives focus. * @param ev The event. */ - onfocus: (this: Document, ev: FocusEvent) => any; - onfullscreenchange: (this: Document, ev: Event) => any; - onfullscreenerror: (this: Document, ev: Event) => any; - oninput: (this: Document, ev: Event) => any; - oninvalid: (this: Document, ev: Event) => any; + onfocus: (this: Document, ev: FocusEvent) => any; + onfullscreenchange: (this: Document, ev: Event) => any; + onfullscreenerror: (this: Document, ev: Event) => any; + oninput: (this: Document, ev: Event) => any; + oninvalid: (this: Document, ev: Event) => any; /** * Fires when the user presses a key. * @param ev The keyboard event */ - onkeydown: (this: Document, ev: KeyboardEvent) => any; + onkeydown: (this: Document, ev: KeyboardEvent) => any; /** * Fires when the user presses an alphanumeric key. * @param ev The event. */ - onkeypress: (this: Document, ev: KeyboardEvent) => any; + onkeypress: (this: Document, ev: KeyboardEvent) => any; /** * Fires when the user releases a key. * @param ev The keyboard event */ - onkeyup: (this: Document, ev: KeyboardEvent) => any; + onkeyup: (this: Document, ev: KeyboardEvent) => any; /** * Fires immediately after the browser loads the object. * @param ev The event. */ - onload: (this: Document, ev: Event) => any; + onload: (this: Document, ev: Event) => any; /** * Occurs when media data is loaded at the current playback position. * @param ev The event. */ - onloadeddata: (this: Document, ev: Event) => any; + onloadeddata: (this: Document, ev: Event) => any; /** * Occurs when the duration and dimensions of the media have been determined. * @param ev The event. */ - onloadedmetadata: (this: Document, ev: Event) => any; + onloadedmetadata: (this: Document, ev: Event) => any; /** * Occurs when Internet Explorer begins looking for media data. * @param ev The event. */ - onloadstart: (this: Document, ev: Event) => any; + onloadstart: (this: Document, ev: Event) => any; /** * Fires when the user clicks the object with either mouse button. * @param ev The mouse event. */ - onmousedown: (this: Document, ev: MouseEvent) => any; + onmousedown: (this: Document, ev: MouseEvent) => any; /** * Fires when the user moves the mouse over the object. * @param ev The mouse event. */ - onmousemove: (this: Document, ev: MouseEvent) => any; + onmousemove: (this: Document, ev: MouseEvent) => any; /** * Fires when the user moves the mouse pointer outside the boundaries of the object. * @param ev The mouse event. */ - onmouseout: (this: Document, ev: MouseEvent) => any; + onmouseout: (this: Document, ev: MouseEvent) => any; /** * Fires when the user moves the mouse pointer into the object. * @param ev The mouse event. */ - onmouseover: (this: Document, ev: MouseEvent) => any; + onmouseover: (this: Document, ev: MouseEvent) => any; /** * Fires when the user releases a mouse button while the mouse is over the object. * @param ev The mouse event. */ - onmouseup: (this: Document, ev: MouseEvent) => any; + onmouseup: (this: Document, ev: MouseEvent) => any; /** * Fires when the wheel button is rotated. * @param ev The mouse event */ - onmousewheel: (this: Document, ev: WheelEvent) => any; - onmscontentzoom: (this: Document, ev: UIEvent) => any; - onmsgesturechange: (this: Document, ev: MSGestureEvent) => any; - onmsgesturedoubletap: (this: Document, ev: MSGestureEvent) => any; - onmsgestureend: (this: Document, ev: MSGestureEvent) => any; - onmsgesturehold: (this: Document, ev: MSGestureEvent) => any; - onmsgesturestart: (this: Document, ev: MSGestureEvent) => any; - onmsgesturetap: (this: Document, ev: MSGestureEvent) => any; - onmsinertiastart: (this: Document, ev: MSGestureEvent) => any; - onmsmanipulationstatechanged: (this: Document, ev: MSManipulationEvent) => any; - onmspointercancel: (this: Document, ev: MSPointerEvent) => any; - onmspointerdown: (this: Document, ev: MSPointerEvent) => any; - onmspointerenter: (this: Document, ev: MSPointerEvent) => any; - onmspointerleave: (this: Document, ev: MSPointerEvent) => any; - onmspointermove: (this: Document, ev: MSPointerEvent) => any; - onmspointerout: (this: Document, ev: MSPointerEvent) => any; - onmspointerover: (this: Document, ev: MSPointerEvent) => any; - onmspointerup: (this: Document, ev: MSPointerEvent) => any; + onmousewheel: (this: Document, ev: WheelEvent) => any; + onmscontentzoom: (this: Document, ev: UIEvent) => any; + onmsgesturechange: (this: Document, ev: MSGestureEvent) => any; + onmsgesturedoubletap: (this: Document, ev: MSGestureEvent) => any; + onmsgestureend: (this: Document, ev: MSGestureEvent) => any; + onmsgesturehold: (this: Document, ev: MSGestureEvent) => any; + onmsgesturestart: (this: Document, ev: MSGestureEvent) => any; + onmsgesturetap: (this: Document, ev: MSGestureEvent) => any; + onmsinertiastart: (this: Document, ev: MSGestureEvent) => any; + onmsmanipulationstatechanged: (this: Document, ev: MSManipulationEvent) => any; + onmspointercancel: (this: Document, ev: MSPointerEvent) => any; + onmspointerdown: (this: Document, ev: MSPointerEvent) => any; + onmspointerenter: (this: Document, ev: MSPointerEvent) => any; + onmspointerleave: (this: Document, ev: MSPointerEvent) => any; + onmspointermove: (this: Document, ev: MSPointerEvent) => any; + onmspointerout: (this: Document, ev: MSPointerEvent) => any; + onmspointerover: (this: Document, ev: MSPointerEvent) => any; + onmspointerup: (this: Document, ev: MSPointerEvent) => any; /** * Occurs when an item is removed from a Jump List of a webpage running in Site Mode. * @param ev The event. */ - onmssitemodejumplistitemremoved: (this: Document, ev: MSSiteModeEvent) => any; + onmssitemodejumplistitemremoved: (this: Document, ev: MSSiteModeEvent) => any; /** * Occurs when a user clicks a button in a Thumbnail Toolbar of a webpage running in Site Mode. * @param ev The event. */ - onmsthumbnailclick: (this: Document, ev: MSSiteModeEvent) => any; + onmsthumbnailclick: (this: Document, ev: MSSiteModeEvent) => any; /** * Occurs when playback is paused. * @param ev The event. */ - onpause: (this: Document, ev: Event) => any; + onpause: (this: Document, ev: Event) => any; /** * Occurs when the play method is requested. * @param ev The event. */ - onplay: (this: Document, ev: Event) => any; + onplay: (this: Document, ev: Event) => any; /** * Occurs when the audio or video has started playing. * @param ev The event. */ - onplaying: (this: Document, ev: Event) => any; - onpointerlockchange: (this: Document, ev: Event) => any; - onpointerlockerror: (this: Document, ev: Event) => any; + onplaying: (this: Document, ev: Event) => any; + onpointerlockchange: (this: Document, ev: Event) => any; + onpointerlockerror: (this: Document, ev: Event) => any; /** * Occurs to indicate progress while downloading media data. * @param ev The event. */ - onprogress: (this: Document, ev: ProgressEvent) => any; + onprogress: (this: Document, ev: ProgressEvent) => any; /** * Occurs when the playback rate is increased or decreased. * @param ev The event. */ - onratechange: (this: Document, ev: Event) => any; + onratechange: (this: Document, ev: Event) => any; /** * Fires when the state of the object has changed. * @param ev The event */ - onreadystatechange: (this: Document, ev: Event) => any; + onreadystatechange: (this: Document, ev: Event) => any; /** * Fires when the user resets a form. * @param ev The event. */ - onreset: (this: Document, ev: Event) => any; + onreset: (this: Document, ev: Event) => any; /** * Fires when the user repositions the scroll box in the scroll bar on the object. * @param ev The event. */ - onscroll: (this: Document, ev: UIEvent) => any; + onscroll: (this: Document, ev: UIEvent) => any; /** * Occurs when the seek operation ends. * @param ev The event. */ - onseeked: (this: Document, ev: Event) => any; + onseeked: (this: Document, ev: Event) => any; /** * Occurs when the current playback position is moved. * @param ev The event. */ - onseeking: (this: Document, ev: Event) => any; + onseeking: (this: Document, ev: Event) => any; /** * Fires when the current selection changes. * @param ev The event. */ - onselect: (this: Document, ev: UIEvent) => any; + onselect: (this: Document, ev: UIEvent) => any; /** * Fires when the selection state of a document changes. * @param ev The event. */ - onselectionchange: (this: Document, ev: Event) => any; - onselectstart: (this: Document, ev: Event) => any; + onselectionchange: (this: Document, ev: Event) => any; + onselectstart: (this: Document, ev: Event) => any; /** * Occurs when the download has stopped. * @param ev The event. */ - onstalled: (this: Document, ev: Event) => any; + onstalled: (this: Document, ev: Event) => any; /** * Fires when the user clicks the Stop button or leaves the Web page. * @param ev The event. */ - onstop: (this: Document, ev: Event) => any; - onsubmit: (this: Document, ev: Event) => any; + onstop: (this: Document, ev: Event) => any; + onsubmit: (this: Document, ev: Event) => any; /** * Occurs if the load operation has been intentionally halted. * @param ev The event. */ - onsuspend: (this: Document, ev: Event) => any; + onsuspend: (this: Document, ev: Event) => any; /** * Occurs to indicate the current playback position. * @param ev The event. */ - ontimeupdate: (this: Document, ev: Event) => any; + ontimeupdate: (this: Document, ev: Event) => any; ontouchcancel: (ev: TouchEvent) => any; ontouchend: (ev: TouchEvent) => any; ontouchmove: (ev: TouchEvent) => any; @@ -3154,14 +3077,14 @@ interface Document extends Node, GlobalEventHandlers, NodeSelector, DocumentEven * Occurs when the volume is changed, or playback is muted or unmuted. * @param ev The event. */ - onvolumechange: (this: Document, ev: Event) => any; + onvolumechange: (this: Document, ev: Event) => any; /** * Occurs when playback stops because the next frame of a video resource is not available. * @param ev The event. */ - onwaiting: (this: Document, ev: Event) => any; - onwebkitfullscreenchange: (this: Document, ev: Event) => any; - onwebkitfullscreenerror: (this: Document, ev: Event) => any; + onwaiting: (this: Document, ev: Event) => any; + onwebkitfullscreenchange: (this: Document, ev: Event) => any; + onwebkitfullscreenerror: (this: Document, ev: Event) => any; plugins: HTMLCollectionOf; readonly pointerLockElement: Element; /** @@ -3440,14 +3363,13 @@ interface Document extends Node, GlobalEventHandlers, NodeSelector, DocumentEven */ writeln(...content: string[]): void; addEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var Document: { prototype: Document; new(): Document; } - interface DocumentFragment extends Node, NodeSelector, ParentNode { } @@ -3455,7 +3377,6 @@ declare var DocumentFragment: { prototype: DocumentFragment; new(): DocumentFragment; } - interface DocumentType extends Node, ChildNode { readonly entities: NamedNodeMap; readonly internalSubset: string | null; @@ -3469,8 +3390,7 @@ declare var DocumentType: { prototype: DocumentType; new(): DocumentType; } - -interface DragEvent extends MouseEvent { +interface DragEvent extends MouseEvent { readonly dataTransfer: DataTransfer; initDragEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: EventTarget, dataTransferArg: DataTransfer): void; msConvertURL(file: File, targetType: string, targetURL?: string): void; @@ -3480,7 +3400,6 @@ declare var DragEvent: { prototype: DragEvent; new(): DragEvent; } - interface DynamicsCompressorNode extends AudioNode { readonly attack: AudioParam; readonly knee: AudioParam; @@ -3494,7 +3413,6 @@ declare var DynamicsCompressorNode: { prototype: DynamicsCompressorNode; new(): DynamicsCompressorNode; } - interface EXT_frag_depth { } @@ -3502,7 +3420,6 @@ declare var EXT_frag_depth: { prototype: EXT_frag_depth; new(): EXT_frag_depth; } - interface EXT_texture_filter_anisotropic { readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: number; readonly TEXTURE_MAX_ANISOTROPY_EXT: number; @@ -3544,8 +3461,7 @@ interface ElementEventMap extends GlobalEventHandlersEventMap { "webkitfullscreenchange": Event; "webkitfullscreenerror": Event; } - -interface Element extends Node, GlobalEventHandlers, ElementTraversal, NodeSelector, ChildNode, ParentNode, EventTarget { +interface Element extends Node, GlobalEventHandlers, ElementTraversal, NodeSelector, ChildNode, ParentNode { readonly classList: DOMTokenList; className: string; readonly clientHeight: number; @@ -3556,33 +3472,33 @@ interface Element extends Node, GlobalEventHandlers, ElementTraversal, NodeSelec innerHTML: string; msContentZoomFactor: number; readonly msRegionOverflow: string; - onariarequest: (this: Element, ev: Event) => any; - oncommand: (this: Element, ev: Event) => any; - ongotpointercapture: (this: Element, ev: PointerEvent) => any; - onlostpointercapture: (this: Element, ev: PointerEvent) => any; - onmsgesturechange: (this: Element, ev: MSGestureEvent) => any; - onmsgesturedoubletap: (this: Element, ev: MSGestureEvent) => any; - onmsgestureend: (this: Element, ev: MSGestureEvent) => any; - onmsgesturehold: (this: Element, ev: MSGestureEvent) => any; - onmsgesturestart: (this: Element, ev: MSGestureEvent) => any; - onmsgesturetap: (this: Element, ev: MSGestureEvent) => any; - onmsgotpointercapture: (this: Element, ev: MSPointerEvent) => any; - onmsinertiastart: (this: Element, ev: MSGestureEvent) => any; - onmslostpointercapture: (this: Element, ev: MSPointerEvent) => any; - onmspointercancel: (this: Element, ev: MSPointerEvent) => any; - onmspointerdown: (this: Element, ev: MSPointerEvent) => any; - onmspointerenter: (this: Element, ev: MSPointerEvent) => any; - onmspointerleave: (this: Element, ev: MSPointerEvent) => any; - onmspointermove: (this: Element, ev: MSPointerEvent) => any; - onmspointerout: (this: Element, ev: MSPointerEvent) => any; - onmspointerover: (this: Element, ev: MSPointerEvent) => any; - onmspointerup: (this: Element, ev: MSPointerEvent) => any; + onariarequest: (this: Element, ev: Event) => any; + oncommand: (this: Element, ev: Event) => any; + ongotpointercapture: (this: Element, ev: PointerEvent) => any; + onlostpointercapture: (this: Element, ev: PointerEvent) => any; + onmsgesturechange: (this: Element, ev: MSGestureEvent) => any; + onmsgesturedoubletap: (this: Element, ev: MSGestureEvent) => any; + onmsgestureend: (this: Element, ev: MSGestureEvent) => any; + onmsgesturehold: (this: Element, ev: MSGestureEvent) => any; + onmsgesturestart: (this: Element, ev: MSGestureEvent) => any; + onmsgesturetap: (this: Element, ev: MSGestureEvent) => any; + onmsgotpointercapture: (this: Element, ev: MSPointerEvent) => any; + onmsinertiastart: (this: Element, ev: MSGestureEvent) => any; + onmslostpointercapture: (this: Element, ev: MSPointerEvent) => any; + onmspointercancel: (this: Element, ev: MSPointerEvent) => any; + onmspointerdown: (this: Element, ev: MSPointerEvent) => any; + onmspointerenter: (this: Element, ev: MSPointerEvent) => any; + onmspointerleave: (this: Element, ev: MSPointerEvent) => any; + onmspointermove: (this: Element, ev: MSPointerEvent) => any; + onmspointerout: (this: Element, ev: MSPointerEvent) => any; + onmspointerover: (this: Element, ev: MSPointerEvent) => any; + onmspointerup: (this: Element, ev: MSPointerEvent) => any; ontouchcancel: (ev: TouchEvent) => any; ontouchend: (ev: TouchEvent) => any; ontouchmove: (ev: TouchEvent) => any; ontouchstart: (ev: TouchEvent) => any; - onwebkitfullscreenchange: (this: Element, ev: Event) => any; - onwebkitfullscreenerror: (this: Element, ev: Event) => any; + onwebkitfullscreenchange: (this: Element, ev: Event) => any; + onwebkitfullscreenerror: (this: Element, ev: Event) => any; outerHTML: string; readonly prefix: string | null; readonly scrollHeight: number; @@ -3641,15 +3557,14 @@ interface Element extends Node, GlobalEventHandlers, ElementTraversal, NodeSelec insertAdjacentText(where: string, text: string): void; attachShadow(shadowRootInitDict: ShadowRootInit): ShadowRoot; addEventListener(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var Element: { prototype: Element; new(): Element; } - -interface ErrorEvent extends Event { +interface ErrorEvent extends Event { readonly colno: number; readonly error: any; readonly filename: string; @@ -3662,7 +3577,6 @@ declare var ErrorEvent: { prototype: ErrorEvent; new(type: string, errorEventInitDict?: ErrorEventInit): ErrorEvent; } - interface Event { readonly bubbles: boolean; cancelBubble: boolean; @@ -3694,18 +3608,16 @@ declare var Event: { readonly BUBBLING_PHASE: number; readonly CAPTURING_PHASE: number; } - interface EventTarget { - addEventListener(type: string, listener?: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener?: EventListenerOrEventListenerObject, useCapture?: boolean): void; dispatchEvent(evt: Event): boolean; - removeEventListener(type: string, listener?: EventListenerOrEventListenerObject, useCapture?: boolean): void; + removeEventListener(type: string, listener?: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var EventTarget: { prototype: EventTarget; new(): EventTarget; } - interface ExtensionScriptApis { extensionIdToShortId(extensionId: string): number; fireExtensionApiTelemetry(functionName: string, isSucceeded: boolean, isSupported: boolean): void; @@ -3720,7 +3632,6 @@ declare var ExtensionScriptApis: { prototype: ExtensionScriptApis; new(): ExtensionScriptApis; } - interface External { } @@ -3728,7 +3639,6 @@ declare var External: { prototype: External; new(): External; } - interface File extends Blob { readonly lastModifiedDate: any; readonly name: string; @@ -3739,7 +3649,6 @@ declare var File: { prototype: File; new (parts: (ArrayBuffer | ArrayBufferView | Blob | string)[], filename: string, properties?: FilePropertyBag): File; } - interface FileList { readonly length: number; item(index: number): File; @@ -3750,23 +3659,21 @@ declare var FileList: { prototype: FileList; new(): FileList; } - -interface FileReader extends EventTarget, MSBaseReader { +interface FileReader extends EventTarget, MSBaseReader { readonly error: DOMError; readAsArrayBuffer(blob: Blob): void; readAsBinaryString(blob: Blob): void; readAsDataURL(blob: Blob): void; readAsText(blob: Blob, encoding?: string): void; addEventListener(type: K, listener: (this: FileReader, ev: MSBaseReaderEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var FileReader: { prototype: FileReader; new(): FileReader; } - -interface FocusEvent extends UIEvent { +interface FocusEvent extends UIEvent { readonly relatedTarget: EventTarget; initFocusEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, relatedTargetArg: EventTarget): void; } @@ -3775,8 +3682,7 @@ declare var FocusEvent: { prototype: FocusEvent; new(typeArg: string, eventInitDict?: FocusEventInit): FocusEvent; } - -interface FocusNavigationEvent extends Event { +interface FocusNavigationEvent extends Event { readonly navigationReason: string; readonly originHeight: number; readonly originLeft: number; @@ -3789,7 +3695,6 @@ declare var FocusNavigationEvent: { prototype: FocusNavigationEvent; new(type: string, eventInitDict?: FocusNavigationEventInit): FocusNavigationEvent; } - interface FormData { append(name: any, value: any, blobName?: string): void; } @@ -3798,7 +3703,6 @@ declare var FormData: { prototype: FormData; new (form?: HTMLFormElement): FormData; } - interface GainNode extends AudioNode { readonly gain: AudioParam; } @@ -3807,7 +3711,6 @@ declare var GainNode: { prototype: GainNode; new(): GainNode; } - interface Gamepad { readonly axes: number[]; readonly buttons: GamepadButton[]; @@ -3822,7 +3725,6 @@ declare var Gamepad: { prototype: Gamepad; new(): Gamepad; } - interface GamepadButton { readonly pressed: boolean; readonly value: number; @@ -3832,8 +3734,7 @@ declare var GamepadButton: { prototype: GamepadButton; new(): GamepadButton; } - -interface GamepadEvent extends Event { +interface GamepadEvent extends Event { readonly gamepad: Gamepad; } @@ -3841,7 +3742,6 @@ declare var GamepadEvent: { prototype: GamepadEvent; new(typeArg: string, eventInitDict?: GamepadEventInit): GamepadEvent; } - interface Geolocation { clearWatch(watchId: number): void; getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback, options?: PositionOptions): void; @@ -3852,7 +3752,6 @@ declare var Geolocation: { prototype: Geolocation; new(): Geolocation; } - interface HTMLAllCollection { readonly length: number; item(nameOrIndex?: string): HTMLCollection | Element | null; @@ -3864,7 +3763,6 @@ declare var HTMLAllCollection: { prototype: HTMLAllCollection; new(): HTMLAllCollection; } - interface HTMLAnchorElement extends HTMLElement { Methods: string; /** @@ -3946,14 +3844,13 @@ interface HTMLAnchorElement extends HTMLElement { */ toString(): string; addEventListener(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLAnchorElement: { prototype: HTMLAnchorElement; new(): HTMLAnchorElement; } - interface HTMLAppletElement extends HTMLElement { /** * Retrieves a string of the URL where the object tag can be found. This is often the href of the document that the object is in, or the value set by a base element. @@ -4020,14 +3917,13 @@ interface HTMLAppletElement extends HTMLElement { vspace: number; width: number; addEventListener(type: K, listener: (this: HTMLAppletElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLAppletElement: { prototype: HTMLAppletElement; new(): HTMLAppletElement; } - interface HTMLAreaElement extends HTMLElement { /** * Sets or retrieves a text alternative to the graphic. @@ -4088,14 +3984,13 @@ interface HTMLAreaElement extends HTMLElement { */ toString(): string; addEventListener(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLAreaElement: { prototype: HTMLAreaElement; new(): HTMLAreaElement; } - interface HTMLAreasCollection extends HTMLCollectionBase { } @@ -4103,31 +3998,28 @@ declare var HTMLAreasCollection: { prototype: HTMLAreasCollection; new(): HTMLAreasCollection; } - interface HTMLAudioElement extends HTMLMediaElement { addEventListener(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLAudioElement: { prototype: HTMLAudioElement; new(): HTMLAudioElement; } - interface HTMLBRElement extends HTMLElement { /** * Sets or retrieves the side on which floating objects are not to be positioned when any IHTMLBlockElement is inserted into the document. */ clear: string; addEventListener(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLBRElement: { prototype: HTMLBRElement; new(): HTMLBRElement; } - interface HTMLBaseElement extends HTMLElement { /** * Gets or sets the baseline URL on which relative links are based. @@ -4138,14 +4030,13 @@ interface HTMLBaseElement extends HTMLElement { */ target: string; addEventListener(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLBaseElement: { prototype: HTMLBaseElement; new(): HTMLBaseElement; } - interface HTMLBaseFontElement extends HTMLElement, DOML2DeprecatedColorProperty { /** * Sets or retrieves the current typeface family. @@ -4156,7 +4047,7 @@ interface HTMLBaseFontElement extends HTMLElement, DOML2DeprecatedColorProperty */ size: number; addEventListener(type: K, listener: (this: HTMLBaseFontElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLBaseFontElement: { @@ -4185,7 +4076,6 @@ interface HTMLBodyElementEventMap extends HTMLElementEventMap { "storage": StorageEvent; "unload": Event; } - interface HTMLBodyElement extends HTMLElement { aLink: any; background: string; @@ -4193,36 +4083,35 @@ interface HTMLBodyElement extends HTMLElement { bgProperties: string; link: any; noWrap: boolean; - onafterprint: (this: HTMLBodyElement, ev: Event) => any; - onbeforeprint: (this: HTMLBodyElement, ev: Event) => any; - onbeforeunload: (this: HTMLBodyElement, ev: BeforeUnloadEvent) => any; - onblur: (this: HTMLBodyElement, ev: FocusEvent) => any; - onerror: (this: HTMLBodyElement, ev: ErrorEvent) => any; - onfocus: (this: HTMLBodyElement, ev: FocusEvent) => any; - onhashchange: (this: HTMLBodyElement, ev: HashChangeEvent) => any; - onload: (this: HTMLBodyElement, ev: Event) => any; - onmessage: (this: HTMLBodyElement, ev: MessageEvent) => any; - onoffline: (this: HTMLBodyElement, ev: Event) => any; - ononline: (this: HTMLBodyElement, ev: Event) => any; - onorientationchange: (this: HTMLBodyElement, ev: Event) => any; - onpagehide: (this: HTMLBodyElement, ev: PageTransitionEvent) => any; - onpageshow: (this: HTMLBodyElement, ev: PageTransitionEvent) => any; - onpopstate: (this: HTMLBodyElement, ev: PopStateEvent) => any; - onresize: (this: HTMLBodyElement, ev: UIEvent) => any; - onscroll: (this: HTMLBodyElement, ev: UIEvent) => any; - onstorage: (this: HTMLBodyElement, ev: StorageEvent) => any; - onunload: (this: HTMLBodyElement, ev: Event) => any; + onafterprint: (this: HTMLBodyElement, ev: Event) => any; + onbeforeprint: (this: HTMLBodyElement, ev: Event) => any; + onbeforeunload: (this: HTMLBodyElement, ev: BeforeUnloadEvent) => any; + onblur: (this: HTMLBodyElement, ev: FocusEvent) => any; + onerror: (this: HTMLBodyElement, ev: ErrorEvent) => any; + onfocus: (this: HTMLBodyElement, ev: FocusEvent) => any; + onhashchange: (this: HTMLBodyElement, ev: HashChangeEvent) => any; + onload: (this: HTMLBodyElement, ev: Event) => any; + onmessage: (this: HTMLBodyElement, ev: MessageEvent) => any; + onoffline: (this: HTMLBodyElement, ev: Event) => any; + ononline: (this: HTMLBodyElement, ev: Event) => any; + onorientationchange: (this: HTMLBodyElement, ev: Event) => any; + onpagehide: (this: HTMLBodyElement, ev: PageTransitionEvent) => any; + onpageshow: (this: HTMLBodyElement, ev: PageTransitionEvent) => any; + onpopstate: (this: HTMLBodyElement, ev: PopStateEvent) => any; + onresize: (this: HTMLBodyElement, ev: UIEvent) => any; + onscroll: (this: HTMLBodyElement, ev: UIEvent) => any; + onstorage: (this: HTMLBodyElement, ev: StorageEvent) => any; + onunload: (this: HTMLBodyElement, ev: Event) => any; text: any; vLink: any; addEventListener(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLBodyElement: { prototype: HTMLBodyElement; new(): HTMLBodyElement; } - interface HTMLButtonElement extends HTMLElement { /** * Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing. @@ -4288,14 +4177,13 @@ interface HTMLButtonElement extends HTMLElement { */ setCustomValidity(error: string): void; addEventListener(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLButtonElement: { prototype: HTMLButtonElement; new(): HTMLButtonElement; } - interface HTMLCanvasElement extends HTMLElement { /** * Gets or sets the height of a canvas element on a document. @@ -4323,14 +4211,13 @@ interface HTMLCanvasElement extends HTMLElement { toDataURL(type?: string, ...args: any[]): string; toBlob(callback: (result: Blob | null) => void, type?: string, ...arguments: any[]): void; addEventListener(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLCanvasElement: { prototype: HTMLCanvasElement; new(): HTMLCanvasElement; } - interface HTMLCollectionBase { /** * Sets or retrieves the number of objects in a collection. @@ -4354,51 +4241,46 @@ declare var HTMLCollection: { prototype: HTMLCollection; new(): HTMLCollection; } - interface HTMLDListElement extends HTMLElement { compact: boolean; addEventListener(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLDListElement: { prototype: HTMLDListElement; new(): HTMLDListElement; } - interface HTMLDataElement extends HTMLElement { value: string; addEventListener(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLDataElement: { prototype: HTMLDataElement; new(): HTMLDataElement; } - interface HTMLDataListElement extends HTMLElement { options: HTMLCollectionOf; addEventListener(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLDataListElement: { prototype: HTMLDataListElement; new(): HTMLDataListElement; } - interface HTMLDirectoryElement extends HTMLElement { compact: boolean; addEventListener(type: K, listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLDirectoryElement: { prototype: HTMLDirectoryElement; new(): HTMLDirectoryElement; } - interface HTMLDivElement extends HTMLElement { /** * Sets or retrieves how the object is aligned with adjacent text. @@ -4409,17 +4291,16 @@ interface HTMLDivElement extends HTMLElement { */ noWrap: boolean; addEventListener(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLDivElement: { prototype: HTMLDivElement; new(): HTMLDivElement; } - interface HTMLDocument extends Document { addEventListener(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLDocument: { @@ -4496,7 +4377,6 @@ interface HTMLElementEventMap extends ElementEventMap { "volumechange": Event; "waiting": Event; } - interface HTMLElement extends Element { accessKey: string; readonly children: HTMLCollection; @@ -4514,73 +4394,73 @@ interface HTMLElement extends Element { readonly offsetParent: Element; readonly offsetTop: number; readonly offsetWidth: number; - onabort: (this: HTMLElement, ev: UIEvent) => any; - onactivate: (this: HTMLElement, ev: UIEvent) => any; - onbeforeactivate: (this: HTMLElement, ev: UIEvent) => any; - onbeforecopy: (this: HTMLElement, ev: ClipboardEvent) => any; - onbeforecut: (this: HTMLElement, ev: ClipboardEvent) => any; - onbeforedeactivate: (this: HTMLElement, ev: UIEvent) => any; - onbeforepaste: (this: HTMLElement, ev: ClipboardEvent) => any; - onblur: (this: HTMLElement, ev: FocusEvent) => any; - oncanplay: (this: HTMLElement, ev: Event) => any; - oncanplaythrough: (this: HTMLElement, ev: Event) => any; - onchange: (this: HTMLElement, ev: Event) => any; - onclick: (this: HTMLElement, ev: MouseEvent) => any; - oncontextmenu: (this: HTMLElement, ev: PointerEvent) => any; - oncopy: (this: HTMLElement, ev: ClipboardEvent) => any; - oncuechange: (this: HTMLElement, ev: Event) => any; - oncut: (this: HTMLElement, ev: ClipboardEvent) => any; - ondblclick: (this: HTMLElement, ev: MouseEvent) => any; - ondeactivate: (this: HTMLElement, ev: UIEvent) => any; - ondrag: (this: HTMLElement, ev: DragEvent) => any; - ondragend: (this: HTMLElement, ev: DragEvent) => any; - ondragenter: (this: HTMLElement, ev: DragEvent) => any; - ondragleave: (this: HTMLElement, ev: DragEvent) => any; - ondragover: (this: HTMLElement, ev: DragEvent) => any; - ondragstart: (this: HTMLElement, ev: DragEvent) => any; - ondrop: (this: HTMLElement, ev: DragEvent) => any; - ondurationchange: (this: HTMLElement, ev: Event) => any; - onemptied: (this: HTMLElement, ev: Event) => any; - onended: (this: HTMLElement, ev: MediaStreamErrorEvent) => any; - onerror: (this: HTMLElement, ev: ErrorEvent) => any; - onfocus: (this: HTMLElement, ev: FocusEvent) => any; - oninput: (this: HTMLElement, ev: Event) => any; - oninvalid: (this: HTMLElement, ev: Event) => any; - onkeydown: (this: HTMLElement, ev: KeyboardEvent) => any; - onkeypress: (this: HTMLElement, ev: KeyboardEvent) => any; - onkeyup: (this: HTMLElement, ev: KeyboardEvent) => any; - onload: (this: HTMLElement, ev: Event) => any; - onloadeddata: (this: HTMLElement, ev: Event) => any; - onloadedmetadata: (this: HTMLElement, ev: Event) => any; - onloadstart: (this: HTMLElement, ev: Event) => any; - onmousedown: (this: HTMLElement, ev: MouseEvent) => any; - onmouseenter: (this: HTMLElement, ev: MouseEvent) => any; - onmouseleave: (this: HTMLElement, ev: MouseEvent) => any; - onmousemove: (this: HTMLElement, ev: MouseEvent) => any; - onmouseout: (this: HTMLElement, ev: MouseEvent) => any; - onmouseover: (this: HTMLElement, ev: MouseEvent) => any; - onmouseup: (this: HTMLElement, ev: MouseEvent) => any; - onmousewheel: (this: HTMLElement, ev: WheelEvent) => any; - onmscontentzoom: (this: HTMLElement, ev: UIEvent) => any; - onmsmanipulationstatechanged: (this: HTMLElement, ev: MSManipulationEvent) => any; - onpaste: (this: HTMLElement, ev: ClipboardEvent) => any; - onpause: (this: HTMLElement, ev: Event) => any; - onplay: (this: HTMLElement, ev: Event) => any; - onplaying: (this: HTMLElement, ev: Event) => any; - onprogress: (this: HTMLElement, ev: ProgressEvent) => any; - onratechange: (this: HTMLElement, ev: Event) => any; - onreset: (this: HTMLElement, ev: Event) => any; - onscroll: (this: HTMLElement, ev: UIEvent) => any; - onseeked: (this: HTMLElement, ev: Event) => any; - onseeking: (this: HTMLElement, ev: Event) => any; - onselect: (this: HTMLElement, ev: UIEvent) => any; - onselectstart: (this: HTMLElement, ev: Event) => any; - onstalled: (this: HTMLElement, ev: Event) => any; - onsubmit: (this: HTMLElement, ev: Event) => any; - onsuspend: (this: HTMLElement, ev: Event) => any; - ontimeupdate: (this: HTMLElement, ev: Event) => any; - onvolumechange: (this: HTMLElement, ev: Event) => any; - onwaiting: (this: HTMLElement, ev: Event) => any; + onabort: (this: HTMLElement, ev: UIEvent) => any; + onactivate: (this: HTMLElement, ev: UIEvent) => any; + onbeforeactivate: (this: HTMLElement, ev: UIEvent) => any; + onbeforecopy: (this: HTMLElement, ev: ClipboardEvent) => any; + onbeforecut: (this: HTMLElement, ev: ClipboardEvent) => any; + onbeforedeactivate: (this: HTMLElement, ev: UIEvent) => any; + onbeforepaste: (this: HTMLElement, ev: ClipboardEvent) => any; + onblur: (this: HTMLElement, ev: FocusEvent) => any; + oncanplay: (this: HTMLElement, ev: Event) => any; + oncanplaythrough: (this: HTMLElement, ev: Event) => any; + onchange: (this: HTMLElement, ev: Event) => any; + onclick: (this: HTMLElement, ev: MouseEvent) => any; + oncontextmenu: (this: HTMLElement, ev: PointerEvent) => any; + oncopy: (this: HTMLElement, ev: ClipboardEvent) => any; + oncuechange: (this: HTMLElement, ev: Event) => any; + oncut: (this: HTMLElement, ev: ClipboardEvent) => any; + ondblclick: (this: HTMLElement, ev: MouseEvent) => any; + ondeactivate: (this: HTMLElement, ev: UIEvent) => any; + ondrag: (this: HTMLElement, ev: DragEvent) => any; + ondragend: (this: HTMLElement, ev: DragEvent) => any; + ondragenter: (this: HTMLElement, ev: DragEvent) => any; + ondragleave: (this: HTMLElement, ev: DragEvent) => any; + ondragover: (this: HTMLElement, ev: DragEvent) => any; + ondragstart: (this: HTMLElement, ev: DragEvent) => any; + ondrop: (this: HTMLElement, ev: DragEvent) => any; + ondurationchange: (this: HTMLElement, ev: Event) => any; + onemptied: (this: HTMLElement, ev: Event) => any; + onended: (this: HTMLElement, ev: MediaStreamErrorEvent) => any; + onerror: (this: HTMLElement, ev: ErrorEvent) => any; + onfocus: (this: HTMLElement, ev: FocusEvent) => any; + oninput: (this: HTMLElement, ev: Event) => any; + oninvalid: (this: HTMLElement, ev: Event) => any; + onkeydown: (this: HTMLElement, ev: KeyboardEvent) => any; + onkeypress: (this: HTMLElement, ev: KeyboardEvent) => any; + onkeyup: (this: HTMLElement, ev: KeyboardEvent) => any; + onload: (this: HTMLElement, ev: Event) => any; + onloadeddata: (this: HTMLElement, ev: Event) => any; + onloadedmetadata: (this: HTMLElement, ev: Event) => any; + onloadstart: (this: HTMLElement, ev: Event) => any; + onmousedown: (this: HTMLElement, ev: MouseEvent) => any; + onmouseenter: (this: HTMLElement, ev: MouseEvent) => any; + onmouseleave: (this: HTMLElement, ev: MouseEvent) => any; + onmousemove: (this: HTMLElement, ev: MouseEvent) => any; + onmouseout: (this: HTMLElement, ev: MouseEvent) => any; + onmouseover: (this: HTMLElement, ev: MouseEvent) => any; + onmouseup: (this: HTMLElement, ev: MouseEvent) => any; + onmousewheel: (this: HTMLElement, ev: WheelEvent) => any; + onmscontentzoom: (this: HTMLElement, ev: UIEvent) => any; + onmsmanipulationstatechanged: (this: HTMLElement, ev: MSManipulationEvent) => any; + onpaste: (this: HTMLElement, ev: ClipboardEvent) => any; + onpause: (this: HTMLElement, ev: Event) => any; + onplay: (this: HTMLElement, ev: Event) => any; + onplaying: (this: HTMLElement, ev: Event) => any; + onprogress: (this: HTMLElement, ev: ProgressEvent) => any; + onratechange: (this: HTMLElement, ev: Event) => any; + onreset: (this: HTMLElement, ev: Event) => any; + onscroll: (this: HTMLElement, ev: UIEvent) => any; + onseeked: (this: HTMLElement, ev: Event) => any; + onseeking: (this: HTMLElement, ev: Event) => any; + onselect: (this: HTMLElement, ev: UIEvent) => any; + onselectstart: (this: HTMLElement, ev: Event) => any; + onstalled: (this: HTMLElement, ev: Event) => any; + onsubmit: (this: HTMLElement, ev: Event) => any; + onsuspend: (this: HTMLElement, ev: Event) => any; + ontimeupdate: (this: HTMLElement, ev: Event) => any; + onvolumechange: (this: HTMLElement, ev: Event) => any; + onwaiting: (this: HTMLElement, ev: Event) => any; outerText: string; spellcheck: boolean; readonly style: CSSStyleDeclaration; @@ -4592,14 +4472,13 @@ interface HTMLElement extends Element { focus(): void; msGetInputContext(): MSInputMethodContext; addEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLElement: { prototype: HTMLElement; new(): HTMLElement; } - interface HTMLEmbedElement extends HTMLElement, GetSVGDocument { /** * Sets or retrieves the height of the object. @@ -4648,14 +4527,13 @@ interface HTMLEmbedElement extends HTMLElement, GetSVGDocument { */ width: string; addEventListener(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLEmbedElement: { prototype: HTMLEmbedElement; new(): HTMLEmbedElement; } - interface HTMLFieldSetElement extends HTMLElement { /** * Sets or retrieves how the object is aligned with adjacent text. @@ -4689,28 +4567,26 @@ interface HTMLFieldSetElement extends HTMLElement { */ setCustomValidity(error: string): void; addEventListener(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLFieldSetElement: { prototype: HTMLFieldSetElement; new(): HTMLFieldSetElement; } - interface HTMLFontElement extends HTMLElement, DOML2DeprecatedColorProperty, DOML2DeprecatedSizeProperty { /** * Sets or retrieves the current typeface family. */ face: string; addEventListener(type: K, listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLFontElement: { prototype: HTMLFontElement; new(): HTMLFontElement; } - interface HTMLFormControlsCollection extends HTMLCollectionBase { namedItem(name: string): HTMLCollection | Element | null; } @@ -4719,7 +4595,6 @@ declare var HTMLFormControlsCollection: { prototype: HTMLFormControlsCollection; new(): HTMLFormControlsCollection; } - interface HTMLFormElement extends HTMLElement { /** * Sets or retrieves a list of character encodings for input data that must be accepted by the server processing the form. @@ -4788,7 +4663,7 @@ interface HTMLFormElement extends HTMLElement { */ submit(): void; addEventListener(type: K, listener: (this: HTMLFormElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; [name: string]: any; } @@ -4800,7 +4675,6 @@ declare var HTMLFormElement: { interface HTMLFrameElementEventMap extends HTMLElementEventMap { "load": Event; } - interface HTMLFrameElement extends HTMLElement, GetSVGDocument { /** * Specifies the properties of a border drawn around an object. @@ -4853,7 +4727,7 @@ interface HTMLFrameElement extends HTMLElement, GetSVGDocument { /** * Raised when the object has been completely received from the server. */ - onload: (this: HTMLFrameElement, ev: Event) => any; + onload: (this: HTMLFrameElement, ev: Event) => any; /** * Sets or retrieves whether the frame can be scrolled. */ @@ -4867,7 +4741,7 @@ interface HTMLFrameElement extends HTMLElement, GetSVGDocument { */ width: string | number; addEventListener(type: K, listener: (this: HTMLFrameElement, ev: HTMLFrameElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLFrameElement: { @@ -4896,7 +4770,6 @@ interface HTMLFrameSetElementEventMap extends HTMLElementEventMap { "storage": StorageEvent; "unload": Event; } - interface HTMLFrameSetElement extends HTMLElement { border: string; /** @@ -4916,44 +4789,43 @@ interface HTMLFrameSetElement extends HTMLElement { */ frameSpacing: any; name: string; - onafterprint: (this: HTMLFrameSetElement, ev: Event) => any; - onbeforeprint: (this: HTMLFrameSetElement, ev: Event) => any; - onbeforeunload: (this: HTMLFrameSetElement, ev: BeforeUnloadEvent) => any; + onafterprint: (this: HTMLFrameSetElement, ev: Event) => any; + onbeforeprint: (this: HTMLFrameSetElement, ev: Event) => any; + onbeforeunload: (this: HTMLFrameSetElement, ev: BeforeUnloadEvent) => any; /** * Fires when the object loses the input focus. */ - onblur: (this: HTMLFrameSetElement, ev: FocusEvent) => any; - onerror: (this: HTMLFrameSetElement, ev: ErrorEvent) => any; + onblur: (this: HTMLFrameSetElement, ev: FocusEvent) => any; + onerror: (this: HTMLFrameSetElement, ev: ErrorEvent) => any; /** * Fires when the object receives focus. */ - onfocus: (this: HTMLFrameSetElement, ev: FocusEvent) => any; - onhashchange: (this: HTMLFrameSetElement, ev: HashChangeEvent) => any; - onload: (this: HTMLFrameSetElement, ev: Event) => any; - onmessage: (this: HTMLFrameSetElement, ev: MessageEvent) => any; - onoffline: (this: HTMLFrameSetElement, ev: Event) => any; - ononline: (this: HTMLFrameSetElement, ev: Event) => any; - onorientationchange: (this: HTMLFrameSetElement, ev: Event) => any; - onpagehide: (this: HTMLFrameSetElement, ev: PageTransitionEvent) => any; - onpageshow: (this: HTMLFrameSetElement, ev: PageTransitionEvent) => any; - onpopstate: (this: HTMLFrameSetElement, ev: PopStateEvent) => any; - onresize: (this: HTMLFrameSetElement, ev: UIEvent) => any; - onscroll: (this: HTMLFrameSetElement, ev: UIEvent) => any; - onstorage: (this: HTMLFrameSetElement, ev: StorageEvent) => any; - onunload: (this: HTMLFrameSetElement, ev: Event) => any; + onfocus: (this: HTMLFrameSetElement, ev: FocusEvent) => any; + onhashchange: (this: HTMLFrameSetElement, ev: HashChangeEvent) => any; + onload: (this: HTMLFrameSetElement, ev: Event) => any; + onmessage: (this: HTMLFrameSetElement, ev: MessageEvent) => any; + onoffline: (this: HTMLFrameSetElement, ev: Event) => any; + ononline: (this: HTMLFrameSetElement, ev: Event) => any; + onorientationchange: (this: HTMLFrameSetElement, ev: Event) => any; + onpagehide: (this: HTMLFrameSetElement, ev: PageTransitionEvent) => any; + onpageshow: (this: HTMLFrameSetElement, ev: PageTransitionEvent) => any; + onpopstate: (this: HTMLFrameSetElement, ev: PopStateEvent) => any; + onresize: (this: HTMLFrameSetElement, ev: UIEvent) => any; + onscroll: (this: HTMLFrameSetElement, ev: UIEvent) => any; + onstorage: (this: HTMLFrameSetElement, ev: StorageEvent) => any; + onunload: (this: HTMLFrameSetElement, ev: Event) => any; /** * Sets or retrieves the frame heights of the object. */ rows: string; addEventListener(type: K, listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLFrameSetElement: { prototype: HTMLFrameSetElement; new(): HTMLFrameSetElement; } - interface HTMLHRElement extends HTMLElement, DOML2DeprecatedColorProperty, DOML2DeprecatedSizeProperty { /** * Sets or retrieves how the object is aligned with adjacent text. @@ -4968,46 +4840,43 @@ interface HTMLHRElement extends HTMLElement, DOML2DeprecatedColorProperty, DOML2 */ width: number; addEventListener(type: K, listener: (this: HTMLHRElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLHRElement: { prototype: HTMLHRElement; new(): HTMLHRElement; } - interface HTMLHeadElement extends HTMLElement { profile: string; addEventListener(type: K, listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLHeadElement: { prototype: HTMLHeadElement; new(): HTMLHeadElement; } - interface HTMLHeadingElement extends HTMLElement { /** * Sets or retrieves a value that indicates the table alignment. */ align: string; addEventListener(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLHeadingElement: { prototype: HTMLHeadingElement; new(): HTMLHeadingElement; } - interface HTMLHtmlElement extends HTMLElement { /** * Sets or retrieves the DTD version that governs the current document. */ version: string; addEventListener(type: K, listener: (this: HTMLHtmlElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLHtmlElement: { @@ -5018,7 +4887,6 @@ declare var HTMLHtmlElement: { interface HTMLIFrameElementEventMap extends HTMLElementEventMap { "load": Event; } - interface HTMLIFrameElement extends HTMLElement, GetSVGDocument { /** * Sets or retrieves how the object is aligned with adjacent text. @@ -5077,7 +4945,7 @@ interface HTMLIFrameElement extends HTMLElement, GetSVGDocument { /** * Raised when the object has been completely received from the server. */ - onload: (this: HTMLIFrameElement, ev: Event) => any; + onload: (this: HTMLIFrameElement, ev: Event) => any; readonly sandbox: DOMSettableTokenList; /** * Sets or retrieves whether the frame can be scrolled. @@ -5096,14 +4964,13 @@ interface HTMLIFrameElement extends HTMLElement, GetSVGDocument { */ width: string; addEventListener(type: K, listener: (this: HTMLIFrameElement, ev: HTMLIFrameElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLIFrameElement: { prototype: HTMLIFrameElement; new(): HTMLIFrameElement; } - interface HTMLImageElement extends HTMLElement { /** * Sets or retrieves how the object is aligned with adjacent text. @@ -5187,14 +5054,13 @@ interface HTMLImageElement extends HTMLElement { readonly y: number; msGetAsCastingSource(): any; addEventListener(type: K, listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLImageElement: { prototype: HTMLImageElement; new(): HTMLImageElement; } - interface HTMLInputElement extends HTMLElement { /** * Sets or retrieves a comma-separated list of content types. @@ -5399,14 +5265,13 @@ interface HTMLInputElement extends HTMLElement { */ stepUp(n?: number): void; addEventListener(type: K, listener: (this: HTMLInputElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLInputElement: { prototype: HTMLInputElement; new(): HTMLInputElement; } - interface HTMLLIElement extends HTMLElement { type: string; /** @@ -5414,14 +5279,13 @@ interface HTMLLIElement extends HTMLElement { */ value: number; addEventListener(type: K, listener: (this: HTMLLIElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLLIElement: { prototype: HTMLLIElement; new(): HTMLLIElement; } - interface HTMLLabelElement extends HTMLElement { /** * Retrieves a reference to the form that the object is embedded in. @@ -5432,14 +5296,13 @@ interface HTMLLabelElement extends HTMLElement { */ htmlFor: string; addEventListener(type: K, listener: (this: HTMLLabelElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLLabelElement: { prototype: HTMLLabelElement; new(): HTMLLabelElement; } - interface HTMLLegendElement extends HTMLElement { /** * Retrieves a reference to the form that the object is embedded in. @@ -5450,14 +5313,13 @@ interface HTMLLegendElement extends HTMLElement { */ readonly form: HTMLFormElement; addEventListener(type: K, listener: (this: HTMLLegendElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLLegendElement: { prototype: HTMLLegendElement; new(): HTMLLegendElement; } - interface HTMLLinkElement extends HTMLElement, LinkStyle { /** * Sets or retrieves the character set used to encode the object. @@ -5495,14 +5357,13 @@ interface HTMLLinkElement extends HTMLElement, LinkStyle { import?: Document; integrity: string; addEventListener(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLLinkElement: { prototype: HTMLLinkElement; new(): HTMLLinkElement; } - interface HTMLMapElement extends HTMLElement { /** * Retrieves a collection of the area objects defined for the given map object. @@ -5513,7 +5374,7 @@ interface HTMLMapElement extends HTMLElement { */ name: string; addEventListener(type: K, listener: (this: HTMLMapElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLMapElement: { @@ -5526,7 +5387,6 @@ interface HTMLMarqueeElementEventMap extends HTMLElementEventMap { "finish": Event; "start": Event; } - interface HTMLMarqueeElement extends HTMLElement { behavior: string; bgColor: any; @@ -5534,9 +5394,9 @@ interface HTMLMarqueeElement extends HTMLElement { height: string; hspace: number; loop: number; - onbounce: (this: HTMLMarqueeElement, ev: Event) => any; - onfinish: (this: HTMLMarqueeElement, ev: Event) => any; - onstart: (this: HTMLMarqueeElement, ev: Event) => any; + onbounce: (this: HTMLMarqueeElement, ev: Event) => any; + onfinish: (this: HTMLMarqueeElement, ev: Event) => any; + onstart: (this: HTMLMarqueeElement, ev: Event) => any; scrollAmount: number; scrollDelay: number; trueSpeed: boolean; @@ -5545,7 +5405,7 @@ interface HTMLMarqueeElement extends HTMLElement { start(): void; stop(): void; addEventListener(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLMarqueeElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLMarqueeElement: { @@ -5557,7 +5417,6 @@ interface HTMLMediaElementEventMap extends HTMLElementEventMap { "encrypted": MediaEncryptedEvent; "msneedkey": MSMediaKeyNeededEvent; } - interface HTMLMediaElement extends HTMLElement { /** * Returns an AudioTrackList object with the audio tracks for a given video element. @@ -5647,8 +5506,8 @@ interface HTMLMediaElement extends HTMLElement { * Gets the current network activity for the element. */ readonly networkState: number; - onencrypted: (this: HTMLMediaElement, ev: MediaEncryptedEvent) => any; - onmsneedkey: (this: HTMLMediaElement, ev: MSMediaKeyNeededEvent) => any; + onencrypted: (this: HTMLMediaElement, ev: MediaEncryptedEvent) => any; + onmsneedkey: (this: HTMLMediaElement, ev: MSMediaKeyNeededEvent) => any; /** * Gets a flag that specifies whether playback is paused. */ @@ -5727,7 +5586,7 @@ interface HTMLMediaElement extends HTMLElement { readonly NETWORK_LOADING: number; readonly NETWORK_NO_SOURCE: number; addEventListener(type: K, listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLMediaElement: { @@ -5743,19 +5602,17 @@ declare var HTMLMediaElement: { readonly NETWORK_LOADING: number; readonly NETWORK_NO_SOURCE: number; } - interface HTMLMenuElement extends HTMLElement { compact: boolean; type: string; addEventListener(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLMenuElement: { prototype: HTMLMenuElement; new(): HTMLMenuElement; } - interface HTMLMetaElement extends HTMLElement { /** * Sets or retrieves the character set used to encode the object. @@ -5782,14 +5639,13 @@ interface HTMLMetaElement extends HTMLElement { */ url: string; addEventListener(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLMetaElement: { prototype: HTMLMetaElement; new(): HTMLMetaElement; } - interface HTMLMeterElement extends HTMLElement { high: number; low: number; @@ -5798,14 +5654,13 @@ interface HTMLMeterElement extends HTMLElement { optimum: number; value: number; addEventListener(type: K, listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLMeterElement: { prototype: HTMLMeterElement; new(): HTMLMeterElement; } - interface HTMLModElement extends HTMLElement { /** * Sets or retrieves reference information about the object. @@ -5816,14 +5671,13 @@ interface HTMLModElement extends HTMLElement { */ dateTime: string; addEventListener(type: K, listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLModElement: { prototype: HTMLModElement; new(): HTMLModElement; } - interface HTMLOListElement extends HTMLElement { compact: boolean; /** @@ -5832,14 +5686,13 @@ interface HTMLOListElement extends HTMLElement { start: number; type: string; addEventListener(type: K, listener: (this: HTMLOListElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLOListElement: { prototype: HTMLOListElement; new(): HTMLOListElement; } - interface HTMLObjectElement extends HTMLElement, GetSVGDocument { /** * Retrieves a string of the URL where the object tag can be found. This is often the href of the document that the object is in, or the value set by a base element. @@ -5949,14 +5802,13 @@ interface HTMLObjectElement extends HTMLElement, GetSVGDocument { */ setCustomValidity(error: string): void; addEventListener(type: K, listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLObjectElement: { prototype: HTMLObjectElement; new(): HTMLObjectElement; } - interface HTMLOptGroupElement extends HTMLElement { /** * Sets or retrieves the status of an option. @@ -5988,14 +5840,13 @@ interface HTMLOptGroupElement extends HTMLElement { */ value: string; addEventListener(type: K, listener: (this: HTMLOptGroupElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLOptGroupElement: { prototype: HTMLOptGroupElement; new(): HTMLOptGroupElement; } - interface HTMLOptionElement extends HTMLElement { /** * Sets or retrieves the status of an option. @@ -6027,14 +5878,13 @@ interface HTMLOptionElement extends HTMLElement { */ value: string; addEventListener(type: K, listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLOptionElement: { prototype: HTMLOptionElement; new(): HTMLOptionElement; } - interface HTMLOptionsCollection extends HTMLCollectionOf { length: number; selectedIndex: number; @@ -6046,7 +5896,6 @@ declare var HTMLOptionsCollection: { prototype: HTMLOptionsCollection; new(): HTMLOptionsCollection; } - interface HTMLOutputElement extends HTMLElement { defaultValue: string; readonly form: HTMLFormElement; @@ -6061,14 +5910,13 @@ interface HTMLOutputElement extends HTMLElement { reportValidity(): boolean; setCustomValidity(error: string): void; addEventListener(type: K, listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLOutputElement: { prototype: HTMLOutputElement; new(): HTMLOutputElement; } - interface HTMLParagraphElement extends HTMLElement { /** * Sets or retrieves how the object is aligned with adjacent text. @@ -6076,14 +5924,13 @@ interface HTMLParagraphElement extends HTMLElement { align: string; clear: string; addEventListener(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLParagraphElement: { prototype: HTMLParagraphElement; new(): HTMLParagraphElement; } - interface HTMLParamElement extends HTMLElement { /** * Sets or retrieves the name of an input parameter for an element. @@ -6102,38 +5949,35 @@ interface HTMLParamElement extends HTMLElement { */ valueType: string; addEventListener(type: K, listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLParamElement: { prototype: HTMLParamElement; new(): HTMLParamElement; } - interface HTMLPictureElement extends HTMLElement { addEventListener(type: K, listener: (this: HTMLPictureElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLPictureElement: { prototype: HTMLPictureElement; new(): HTMLPictureElement; } - interface HTMLPreElement extends HTMLElement { /** * Sets or gets a value that you can use to implement your own width functionality for the object. */ width: number; addEventListener(type: K, listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLPreElement: { prototype: HTMLPreElement; new(): HTMLPreElement; } - interface HTMLProgressElement extends HTMLElement { /** * Retrieves a reference to the form that the object is embedded in. @@ -6152,28 +5996,26 @@ interface HTMLProgressElement extends HTMLElement { */ value: number; addEventListener(type: K, listener: (this: HTMLProgressElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLProgressElement: { prototype: HTMLProgressElement; new(): HTMLProgressElement; } - interface HTMLQuoteElement extends HTMLElement { /** * Sets or retrieves reference information about the object. */ cite: string; addEventListener(type: K, listener: (this: HTMLQuoteElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLQuoteElement: { prototype: HTMLQuoteElement; new(): HTMLQuoteElement; } - interface HTMLScriptElement extends HTMLElement { async: boolean; /** @@ -6207,14 +6049,13 @@ interface HTMLScriptElement extends HTMLElement { type: string; integrity: string; addEventListener(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLScriptElement: { prototype: HTMLScriptElement; new(): HTMLScriptElement; } - interface HTMLSelectElement extends HTMLElement { /** * Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing. @@ -6303,7 +6144,7 @@ interface HTMLSelectElement extends HTMLElement { */ setCustomValidity(error: string): void; addEventListener(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; [name: string]: any; } @@ -6311,7 +6152,6 @@ declare var HTMLSelectElement: { prototype: HTMLSelectElement; new(): HTMLSelectElement; } - interface HTMLSourceElement extends HTMLElement { /** * Gets or sets the intended media type of the media source. @@ -6329,24 +6169,22 @@ interface HTMLSourceElement extends HTMLElement { */ type: string; addEventListener(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLSourceElement: { prototype: HTMLSourceElement; new(): HTMLSourceElement; } - interface HTMLSpanElement extends HTMLElement { addEventListener(type: K, listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLSpanElement: { prototype: HTMLSpanElement; new(): HTMLSpanElement; } - interface HTMLStyleElement extends HTMLElement, LinkStyle { disabled: boolean; /** @@ -6358,14 +6196,13 @@ interface HTMLStyleElement extends HTMLElement, LinkStyle { */ type: string; addEventListener(type: K, listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLStyleElement: { prototype: HTMLStyleElement; new(): HTMLStyleElement; } - interface HTMLTableCaptionElement extends HTMLElement { /** * Sets or retrieves the alignment of the caption or legend. @@ -6376,14 +6213,13 @@ interface HTMLTableCaptionElement extends HTMLElement { */ vAlign: string; addEventListener(type: K, listener: (this: HTMLTableCaptionElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLTableCaptionElement: { prototype: HTMLTableCaptionElement; new(): HTMLTableCaptionElement; } - interface HTMLTableCellElement extends HTMLElement, HTMLTableAlignment { /** * Sets or retrieves abbreviated text for the object. @@ -6431,14 +6267,13 @@ interface HTMLTableCellElement extends HTMLElement, HTMLTableAlignment { */ width: string; addEventListener(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLTableCellElement: { prototype: HTMLTableCellElement; new(): HTMLTableCellElement; } - interface HTMLTableColElement extends HTMLElement, HTMLTableAlignment { /** * Sets or retrieves the alignment of the object relative to the display or table. @@ -6453,24 +6288,22 @@ interface HTMLTableColElement extends HTMLElement, HTMLTableAlignment { */ width: any; addEventListener(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLTableColElement: { prototype: HTMLTableColElement; new(): HTMLTableColElement; } - interface HTMLTableDataCellElement extends HTMLTableCellElement { addEventListener(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLTableDataCellElement: { prototype: HTMLTableDataCellElement; new(): HTMLTableDataCellElement; } - interface HTMLTableElement extends HTMLElement { /** * Sets or retrieves a value that indicates the table alignment. @@ -6576,28 +6409,26 @@ interface HTMLTableElement extends HTMLElement { */ insertRow(index?: number): HTMLTableRowElement; addEventListener(type: K, listener: (this: HTMLTableElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLTableElement: { prototype: HTMLTableElement; new(): HTMLTableElement; } - interface HTMLTableHeaderCellElement extends HTMLTableCellElement { /** * Sets or retrieves the group of cells in a table to which the object's information applies. */ scope: string; addEventListener(type: K, listener: (this: HTMLTableHeaderCellElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLTableHeaderCellElement: { prototype: HTMLTableHeaderCellElement; new(): HTMLTableHeaderCellElement; } - interface HTMLTableRowElement extends HTMLElement, HTMLTableAlignment { /** * Sets or retrieves how the object is aligned with adjacent text. @@ -6631,14 +6462,13 @@ interface HTMLTableRowElement extends HTMLElement, HTMLTableAlignment { */ insertCell(index?: number): HTMLTableDataCellElement; addEventListener(type: K, listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLTableRowElement: { prototype: HTMLTableRowElement; new(): HTMLTableRowElement; } - interface HTMLTableSectionElement extends HTMLElement, HTMLTableAlignment { /** * Sets or retrieves a value that indicates the table alignment. @@ -6659,25 +6489,23 @@ interface HTMLTableSectionElement extends HTMLElement, HTMLTableAlignment { */ insertRow(index?: number): HTMLTableRowElement; addEventListener(type: K, listener: (this: HTMLTableSectionElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLTableSectionElement: { prototype: HTMLTableSectionElement; new(): HTMLTableSectionElement; } - interface HTMLTemplateElement extends HTMLElement { readonly content: DocumentFragment; addEventListener(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLTemplateElement: { prototype: HTMLTemplateElement; new(): HTMLTemplateElement; } - interface HTMLTextAreaElement extends HTMLElement { /** * Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing. @@ -6777,39 +6605,36 @@ interface HTMLTextAreaElement extends HTMLElement { */ setSelectionRange(start: number, end: number): void; addEventListener(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLTextAreaElement: { prototype: HTMLTextAreaElement; new(): HTMLTextAreaElement; } - interface HTMLTimeElement extends HTMLElement { dateTime: string; addEventListener(type: K, listener: (this: HTMLTimeElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLTimeElement: { prototype: HTMLTimeElement; new(): HTMLTimeElement; } - interface HTMLTitleElement extends HTMLElement { /** * Retrieves or sets the text of the object as a string. */ text: string; addEventListener(type: K, listener: (this: HTMLTitleElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLTitleElement: { prototype: HTMLTitleElement; new(): HTMLTitleElement; } - interface HTMLTrackElement extends HTMLElement { default: boolean; kind: string; @@ -6823,7 +6648,7 @@ interface HTMLTrackElement extends HTMLElement { readonly LOADING: number; readonly NONE: number; addEventListener(type: K, listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLTrackElement: { @@ -6834,22 +6659,20 @@ declare var HTMLTrackElement: { readonly LOADING: number; readonly NONE: number; } - interface HTMLUListElement extends HTMLElement { compact: boolean; type: string; addEventListener(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLUListElement: { prototype: HTMLUListElement; new(): HTMLUListElement; } - interface HTMLUnknownElement extends HTMLElement { addEventListener(type: K, listener: (this: HTMLUnknownElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLUnknownElement: { @@ -6862,7 +6685,6 @@ interface HTMLVideoElementEventMap extends HTMLMediaElementEventMap { "MSVideoFrameStepCompleted": Event; "MSVideoOptimalLayoutChanged": Event; } - interface HTMLVideoElement extends HTMLMediaElement { /** * Gets or sets the height of the video element. @@ -6874,9 +6696,9 @@ interface HTMLVideoElement extends HTMLMediaElement { msStereo3DPackingMode: string; msStereo3DRenderMode: string; msZoom: boolean; - onMSVideoFormatChanged: (this: HTMLVideoElement, ev: Event) => any; - onMSVideoFrameStepCompleted: (this: HTMLVideoElement, ev: Event) => any; - onMSVideoOptimalLayoutChanged: (this: HTMLVideoElement, ev: Event) => any; + onMSVideoFormatChanged: (this: HTMLVideoElement, ev: Event) => any; + onMSVideoFrameStepCompleted: (this: HTMLVideoElement, ev: Event) => any; + onMSVideoOptimalLayoutChanged: (this: HTMLVideoElement, ev: Event) => any; /** * Gets or sets a URL of an image to display, for example, like a movie poster. This can be a still frame from the video, or another image if no video data is available. */ @@ -6904,15 +6726,14 @@ interface HTMLVideoElement extends HTMLMediaElement { webkitExitFullScreen(): void; webkitExitFullscreen(): void; addEventListener(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLVideoElement: { prototype: HTMLVideoElement; new(): HTMLVideoElement; } - -interface HashChangeEvent extends Event { +interface HashChangeEvent extends Event { readonly newURL: string | null; readonly oldURL: string | null; } @@ -6921,7 +6742,6 @@ declare var HashChangeEvent: { prototype: HashChangeEvent; new(typeArg: string, eventInitDict?: HashChangeEventInit): HashChangeEvent; } - interface Headers { append(name: string, value: string): void; delete(name: string): void; @@ -6935,7 +6755,6 @@ declare var Headers: { prototype: Headers; new(init?: any): Headers; } - interface History { readonly length: number; readonly state: any; @@ -6951,7 +6770,6 @@ declare var History: { prototype: History; new(): History; } - interface IDBCursor { readonly direction: string; key: IDBKeyRange | IDBValidKey; @@ -6975,7 +6793,6 @@ declare var IDBCursor: { readonly PREV: string; readonly PREV_NO_DUPLICATE: string; } - interface IDBCursorWithValue extends IDBCursor { readonly value: any; } @@ -6989,12 +6806,11 @@ interface IDBDatabaseEventMap { "abort": Event; "error": Event; } - interface IDBDatabase extends EventTarget { readonly name: string; readonly objectStoreNames: DOMStringList; - onabort: (this: IDBDatabase, ev: Event) => any; - onerror: (this: IDBDatabase, ev: Event) => any; + onabort: (this: IDBDatabase, ev: Event) => any; + onerror: (this: IDBDatabase, ev: Event) => any; version: number; onversionchange: (ev: IDBVersionChangeEvent) => any; close(): void; @@ -7003,14 +6819,13 @@ interface IDBDatabase extends EventTarget { transaction(storeNames: string | string[], mode?: string): IDBTransaction; addEventListener(type: "versionchange", listener: (ev: IDBVersionChangeEvent) => any, useCapture?: boolean): void; addEventListener(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var IDBDatabase: { prototype: IDBDatabase; new(): IDBDatabase; } - interface IDBFactory { cmp(first: any, second: any): number; deleteDatabase(name: string): IDBOpenDBRequest; @@ -7021,7 +6836,6 @@ declare var IDBFactory: { prototype: IDBFactory; new(): IDBFactory; } - interface IDBIndex { keyPath: string | string[]; readonly name: string; @@ -7039,7 +6853,6 @@ declare var IDBIndex: { prototype: IDBIndex; new(): IDBIndex; } - interface IDBKeyRange { readonly lower: any; readonly lowerOpen: boolean; @@ -7055,7 +6868,6 @@ declare var IDBKeyRange: { only(value: any): IDBKeyRange; upperBound(upper: any, open?: boolean): IDBKeyRange; } - interface IDBObjectStore { readonly indexNames: DOMStringList; keyPath: string | string[]; @@ -7083,12 +6895,11 @@ interface IDBOpenDBRequestEventMap extends IDBRequestEventMap { "blocked": Event; "upgradeneeded": IDBVersionChangeEvent; } - interface IDBOpenDBRequest extends IDBRequest { - onblocked: (this: IDBOpenDBRequest, ev: Event) => any; - onupgradeneeded: (this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any; + onblocked: (this: IDBOpenDBRequest, ev: Event) => any; + onupgradeneeded: (this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any; addEventListener(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var IDBOpenDBRequest: { @@ -7100,17 +6911,16 @@ interface IDBRequestEventMap { "error": Event; "success": Event; } - interface IDBRequest extends EventTarget { readonly error: DOMError; - onerror: (this: IDBRequest, ev: Event) => any; - onsuccess: (this: IDBRequest, ev: Event) => any; + onerror: (this: IDBRequest, ev: Event) => any; + onsuccess: (this: IDBRequest, ev: Event) => any; readonly readyState: string; readonly result: any; source: IDBObjectStore | IDBIndex | IDBCursor; readonly transaction: IDBTransaction; addEventListener(type: K, listener: (this: IDBRequest, ev: IDBRequestEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var IDBRequest: { @@ -7123,21 +6933,20 @@ interface IDBTransactionEventMap { "complete": Event; "error": Event; } - interface IDBTransaction extends EventTarget { readonly db: IDBDatabase; readonly error: DOMError; readonly mode: string; - onabort: (this: IDBTransaction, ev: Event) => any; - oncomplete: (this: IDBTransaction, ev: Event) => any; - onerror: (this: IDBTransaction, ev: Event) => any; + onabort: (this: IDBTransaction, ev: Event) => any; + oncomplete: (this: IDBTransaction, ev: Event) => any; + onerror: (this: IDBTransaction, ev: Event) => any; abort(): void; objectStore(name: string): IDBObjectStore; readonly READ_ONLY: string; readonly READ_WRITE: string; readonly VERSION_CHANGE: string; addEventListener(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var IDBTransaction: { @@ -7147,8 +6956,7 @@ declare var IDBTransaction: { readonly READ_WRITE: string; readonly VERSION_CHANGE: string; } - -interface IDBVersionChangeEvent extends Event { +interface IDBVersionChangeEvent extends Event { readonly newVersion: number | null; readonly oldVersion: number; } @@ -7157,7 +6965,6 @@ declare var IDBVersionChangeEvent: { prototype: IDBVersionChangeEvent; new(): IDBVersionChangeEvent; } - interface IIRFilterNode extends AudioNode { getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void; } @@ -7166,7 +6973,6 @@ declare var IIRFilterNode: { prototype: IIRFilterNode; new(): IIRFilterNode; } - interface ImageData { data: Uint8ClampedArray; readonly height: number; @@ -7178,7 +6984,6 @@ declare var ImageData: { new(width: number, height: number): ImageData; new(array: Uint8ClampedArray, width: number, height: number): ImageData; } - interface IntersectionObserver { readonly root: Element | null; readonly rootMargin: string; @@ -7193,7 +6998,6 @@ declare var IntersectionObserver: { prototype: IntersectionObserver; new(callback: IntersectionObserverCallback, options?: IntersectionObserverInit): IntersectionObserver; } - interface IntersectionObserverEntry { readonly boundingClientRect: ClientRect; readonly intersectionRatio: number; @@ -7207,8 +7011,7 @@ declare var IntersectionObserverEntry: { prototype: IntersectionObserverEntry; new(intersectionObserverEntryInit: IntersectionObserverEntryInit): IntersectionObserverEntry; } - -interface KeyboardEvent extends UIEvent { +interface KeyboardEvent extends UIEvent { readonly altKey: boolean; readonly char: string | null; readonly charCode: number; @@ -7242,8 +7045,7 @@ declare var KeyboardEvent: { readonly DOM_KEY_LOCATION_RIGHT: number; readonly DOM_KEY_LOCATION_STANDARD: number; } - -interface ListeningStateChangedEvent extends Event { +interface ListeningStateChangedEvent extends Event { readonly label: string; readonly state: string; } @@ -7252,7 +7054,6 @@ declare var ListeningStateChangedEvent: { prototype: ListeningStateChangedEvent; new(): ListeningStateChangedEvent; } - interface Location { hash: string; host: string; @@ -7273,8 +7074,7 @@ declare var Location: { prototype: Location; new(): Location; } - -interface LongRunningScriptDetectedEvent extends Event { +interface LongRunningScriptDetectedEvent extends Event { readonly executionTime: number; stopPageScriptExecution: boolean; } @@ -7283,7 +7083,6 @@ declare var LongRunningScriptDetectedEvent: { prototype: LongRunningScriptDetectedEvent; new(): LongRunningScriptDetectedEvent; } - interface MSApp { clearTemporaryWebDataAsync(): MSAppAsyncOperation; createBlobFromRandomAccessStream(type: string, seeker: any): Blob; @@ -7311,11 +7110,10 @@ interface MSAppAsyncOperationEventMap { "complete": Event; "error": Event; } - interface MSAppAsyncOperation extends EventTarget { readonly error: DOMError; - oncomplete: (this: MSAppAsyncOperation, ev: Event) => any; - onerror: (this: MSAppAsyncOperation, ev: Event) => any; + oncomplete: (this: MSAppAsyncOperation, ev: Event) => any; + onerror: (this: MSAppAsyncOperation, ev: Event) => any; readonly readyState: number; readonly result: any; start(): void; @@ -7323,7 +7121,7 @@ interface MSAppAsyncOperation extends EventTarget { readonly ERROR: number; readonly STARTED: number; addEventListener(type: K, listener: (this: MSAppAsyncOperation, ev: MSAppAsyncOperationEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var MSAppAsyncOperation: { @@ -7333,7 +7131,6 @@ declare var MSAppAsyncOperation: { readonly ERROR: number; readonly STARTED: number; } - interface MSAssertion { readonly id: string; readonly type: string; @@ -7343,7 +7140,6 @@ declare var MSAssertion: { prototype: MSAssertion; new(): MSAssertion; } - interface MSBlobBuilder { append(data: any, endings?: string): void; getBlob(contentType?: string): Blob; @@ -7353,7 +7149,6 @@ declare var MSBlobBuilder: { prototype: MSBlobBuilder; new(): MSBlobBuilder; } - interface MSCredentials { getAssertion(challenge: string, filter?: MSCredentialFilter, params?: MSSignatureParameters): Promise; makeCredential(accountInfo: MSAccountInfo, params: MSCredentialParameters[], challenge?: string): Promise; @@ -7363,7 +7158,6 @@ declare var MSCredentials: { prototype: MSCredentials; new(): MSCredentials; } - interface MSFIDOCredentialAssertion extends MSAssertion { readonly algorithm: string | Algorithm; readonly attestation: any; @@ -7375,7 +7169,6 @@ declare var MSFIDOCredentialAssertion: { prototype: MSFIDOCredentialAssertion; new(): MSFIDOCredentialAssertion; } - interface MSFIDOSignature { readonly authnrData: string; readonly clientData: string; @@ -7386,7 +7179,6 @@ declare var MSFIDOSignature: { prototype: MSFIDOSignature; new(): MSFIDOSignature; } - interface MSFIDOSignatureAssertion extends MSAssertion { readonly signature: MSFIDOSignature; } @@ -7395,7 +7187,6 @@ declare var MSFIDOSignatureAssertion: { prototype: MSFIDOSignatureAssertion; new(): MSFIDOSignatureAssertion; } - interface MSGesture { target: Element; addPointer(pointerId: number): void; @@ -7406,8 +7197,7 @@ declare var MSGesture: { prototype: MSGesture; new(): MSGesture; } - -interface MSGestureEvent extends UIEvent { +interface MSGestureEvent extends UIEvent { readonly clientX: number; readonly clientY: number; readonly expansion: number; @@ -7442,7 +7232,6 @@ declare var MSGestureEvent: { readonly MSGESTURE_FLAG_INERTIA: number; readonly MSGESTURE_FLAG_NONE: number; } - interface MSGraphicsTrust { readonly constrictionActive: boolean; readonly status: string; @@ -7452,7 +7241,6 @@ declare var MSGraphicsTrust: { prototype: MSGraphicsTrust; new(): MSGraphicsTrust; } - interface MSHTMLWebViewElement extends HTMLElement { readonly canGoBack: boolean; readonly canGoForward: boolean; @@ -7479,7 +7267,7 @@ interface MSHTMLWebViewElement extends HTMLElement { refresh(): void; stop(): void; addEventListener(type: K, listener: (this: MSHTMLWebViewElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var MSHTMLWebViewElement: { @@ -7492,28 +7280,26 @@ interface MSInputMethodContextEventMap { "MSCandidateWindowShow": Event; "MSCandidateWindowUpdate": Event; } - interface MSInputMethodContext extends EventTarget { readonly compositionEndOffset: number; readonly compositionStartOffset: number; - oncandidatewindowhide: (this: MSInputMethodContext, ev: Event) => any; - oncandidatewindowshow: (this: MSInputMethodContext, ev: Event) => any; - oncandidatewindowupdate: (this: MSInputMethodContext, ev: Event) => any; + oncandidatewindowhide: (this: MSInputMethodContext, ev: Event) => any; + oncandidatewindowshow: (this: MSInputMethodContext, ev: Event) => any; + oncandidatewindowupdate: (this: MSInputMethodContext, ev: Event) => any; readonly target: HTMLElement; getCandidateWindowClientRect(): ClientRect; getCompositionAlternatives(): string[]; hasComposition(): boolean; isCandidateWindowVisible(): boolean; addEventListener(type: K, listener: (this: MSInputMethodContext, ev: MSInputMethodContextEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var MSInputMethodContext: { prototype: MSInputMethodContext; new(): MSInputMethodContext; } - -interface MSManipulationEvent extends UIEvent { +interface MSManipulationEvent extends UIEvent { readonly currentState: number; readonly inertiaDestinationX: number; readonly inertiaDestinationY: number; @@ -7541,7 +7327,6 @@ declare var MSManipulationEvent: { readonly MS_MANIPULATION_STATE_SELECTING: number; readonly MS_MANIPULATION_STATE_STOPPED: number; } - interface MSMediaKeyError { readonly code: number; readonly systemCode: number; @@ -7563,8 +7348,7 @@ declare var MSMediaKeyError: { readonly MS_MEDIA_KEYERR_SERVICE: number; readonly MS_MEDIA_KEYERR_UNKNOWN: number; } - -interface MSMediaKeyMessageEvent extends Event { +interface MSMediaKeyMessageEvent extends Event { readonly destinationURL: string | null; readonly message: Uint8Array; } @@ -7573,8 +7357,7 @@ declare var MSMediaKeyMessageEvent: { prototype: MSMediaKeyMessageEvent; new(): MSMediaKeyMessageEvent; } - -interface MSMediaKeyNeededEvent extends Event { +interface MSMediaKeyNeededEvent extends Event { readonly initData: Uint8Array | null; } @@ -7582,7 +7365,6 @@ declare var MSMediaKeyNeededEvent: { prototype: MSMediaKeyNeededEvent; new(): MSMediaKeyNeededEvent; } - interface MSMediaKeySession extends EventTarget { readonly error: MSMediaKeyError | null; readonly keySystem: string; @@ -7595,7 +7377,6 @@ declare var MSMediaKeySession: { prototype: MSMediaKeySession; new(): MSMediaKeySession; } - interface MSMediaKeys { readonly keySystem: string; createSession(type: string, initData: Uint8Array, cdmData?: Uint8Array): MSMediaKeySession; @@ -7607,8 +7388,7 @@ declare var MSMediaKeys: { isTypeSupported(keySystem: string, type?: string): boolean; isTypeSupportedWithFeatures(keySystem: string, type?: string): string; } - -interface MSPointerEvent extends MouseEvent { +interface MSPointerEvent extends MouseEvent { readonly currentPoint: any; readonly height: number; readonly hwTimestamp: number; @@ -7630,7 +7410,6 @@ declare var MSPointerEvent: { prototype: MSPointerEvent; new(typeArg: string, eventInitDict?: PointerEventInit): MSPointerEvent; } - interface MSRangeCollection { readonly length: number; item(index: number): Range; @@ -7641,8 +7420,7 @@ declare var MSRangeCollection: { prototype: MSRangeCollection; new(): MSRangeCollection; } - -interface MSSiteModeEvent extends Event { +interface MSSiteModeEvent extends Event { readonly actionURL: string; readonly buttonID: number; } @@ -7651,7 +7429,6 @@ declare var MSSiteModeEvent: { prototype: MSSiteModeEvent; new(): MSSiteModeEvent; } - interface MSStream { readonly type: string; msClose(): void; @@ -7662,8 +7439,7 @@ declare var MSStream: { prototype: MSStream; new(): MSStream; } - -interface MSStreamReader extends EventTarget, MSBaseReader { +interface MSStreamReader extends EventTarget, MSBaseReader { readonly error: DOMError; readAsArrayBuffer(stream: MSStream, size?: number): void; readAsBinaryString(stream: MSStream, size?: number): void; @@ -7671,7 +7447,7 @@ interface MSStreamReader extends EventTarget, MSBaseReader { readAsDataURL(stream: MSStream, size?: number): void; readAsText(stream: MSStream, encoding?: string, size?: number): void; addEventListener(type: K, listener: (this: MSStreamReader, ev: MSBaseReaderEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var MSStreamReader: { @@ -7683,11 +7459,10 @@ interface MSWebViewAsyncOperationEventMap { "complete": Event; "error": Event; } - interface MSWebViewAsyncOperation extends EventTarget { readonly error: DOMError; - oncomplete: (this: MSWebViewAsyncOperation, ev: Event) => any; - onerror: (this: MSWebViewAsyncOperation, ev: Event) => any; + oncomplete: (this: MSWebViewAsyncOperation, ev: Event) => any; + onerror: (this: MSWebViewAsyncOperation, ev: Event) => any; readonly readyState: number; readonly result: any; readonly target: MSHTMLWebViewElement; @@ -7700,7 +7475,7 @@ interface MSWebViewAsyncOperation extends EventTarget { readonly TYPE_CREATE_DATA_PACKAGE_FROM_SELECTION: number; readonly TYPE_INVOKE_SCRIPT: number; addEventListener(type: K, listener: (this: MSWebViewAsyncOperation, ev: MSWebViewAsyncOperationEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var MSWebViewAsyncOperation: { @@ -7713,7 +7488,6 @@ declare var MSWebViewAsyncOperation: { readonly TYPE_CREATE_DATA_PACKAGE_FROM_SELECTION: number; readonly TYPE_INVOKE_SCRIPT: number; } - interface MSWebViewSettings { isIndexedDBEnabled: boolean; isJavaScriptEnabled: boolean; @@ -7723,7 +7497,6 @@ declare var MSWebViewSettings: { prototype: MSWebViewSettings; new(): MSWebViewSettings; } - interface MediaDeviceInfo { readonly deviceId: string; readonly groupId: string; @@ -7739,21 +7512,19 @@ declare var MediaDeviceInfo: { interface MediaDevicesEventMap { "devicechange": Event; } - interface MediaDevices extends EventTarget { - ondevicechange: (this: MediaDevices, ev: Event) => any; + ondevicechange: (this: MediaDevices, ev: Event) => any; enumerateDevices(): any; getSupportedConstraints(): MediaTrackSupportedConstraints; getUserMedia(constraints: MediaStreamConstraints): Promise; addEventListener(type: K, listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var MediaDevices: { prototype: MediaDevices; new(): MediaDevices; } - interface MediaElementAudioSourceNode extends AudioNode { } @@ -7761,8 +7532,7 @@ declare var MediaElementAudioSourceNode: { prototype: MediaElementAudioSourceNode; new(): MediaElementAudioSourceNode; } - -interface MediaEncryptedEvent extends Event { +interface MediaEncryptedEvent extends Event { readonly initData: ArrayBuffer | null; readonly initDataType: string; } @@ -7771,7 +7541,6 @@ declare var MediaEncryptedEvent: { prototype: MediaEncryptedEvent; new(type: string, eventInitDict?: MediaEncryptedEventInit): MediaEncryptedEvent; } - interface MediaError { readonly code: number; readonly msExtendedCode: number; @@ -7791,8 +7560,7 @@ declare var MediaError: { readonly MEDIA_ERR_SRC_NOT_SUPPORTED: number; readonly MS_MEDIA_ERR_ENCRYPTED: number; } - -interface MediaKeyMessageEvent extends Event { +interface MediaKeyMessageEvent extends Event { readonly message: ArrayBuffer; readonly messageType: string; } @@ -7801,7 +7569,6 @@ declare var MediaKeyMessageEvent: { prototype: MediaKeyMessageEvent; new(type: string, eventInitDict?: MediaKeyMessageEventInit): MediaKeyMessageEvent; } - interface MediaKeySession extends EventTarget { readonly closed: Promise; readonly expiration: number; @@ -7818,7 +7585,6 @@ declare var MediaKeySession: { prototype: MediaKeySession; new(): MediaKeySession; } - interface MediaKeyStatusMap { readonly size: number; forEach(callback: ForEachCallback): void; @@ -7830,7 +7596,6 @@ declare var MediaKeyStatusMap: { prototype: MediaKeyStatusMap; new(): MediaKeyStatusMap; } - interface MediaKeySystemAccess { readonly keySystem: string; createMediaKeys(): Promise; @@ -7841,7 +7606,6 @@ declare var MediaKeySystemAccess: { prototype: MediaKeySystemAccess; new(): MediaKeySystemAccess; } - interface MediaKeys { createSession(sessionType?: string): MediaKeySession; setServerCertificate(serverCertificate: any): Promise; @@ -7851,7 +7615,6 @@ declare var MediaKeys: { prototype: MediaKeys; new(): MediaKeys; } - interface MediaList { readonly length: number; mediaText: string; @@ -7866,7 +7629,6 @@ declare var MediaList: { prototype: MediaList; new(): MediaList; } - interface MediaQueryList { readonly matches: boolean; readonly media: string; @@ -7878,7 +7640,6 @@ declare var MediaQueryList: { prototype: MediaQueryList; new(): MediaQueryList; } - interface MediaSource extends EventTarget { readonly activeSourceBuffers: SourceBufferList; duration: number; @@ -7901,14 +7662,13 @@ interface MediaStreamEventMap { "inactive": Event; "removetrack": MediaStreamTrackEvent; } - interface MediaStream extends EventTarget { readonly active: boolean; readonly id: string; - onactive: (this: MediaStream, ev: Event) => any; - onaddtrack: (this: MediaStream, ev: MediaStreamTrackEvent) => any; - oninactive: (this: MediaStream, ev: Event) => any; - onremovetrack: (this: MediaStream, ev: MediaStreamTrackEvent) => any; + onactive: (this: MediaStream, ev: Event) => any; + onaddtrack: (this: MediaStream, ev: MediaStreamTrackEvent) => any; + oninactive: (this: MediaStream, ev: Event) => any; + onremovetrack: (this: MediaStream, ev: MediaStreamTrackEvent) => any; addTrack(track: MediaStreamTrack): void; clone(): MediaStream; getAudioTracks(): MediaStreamTrack[]; @@ -7918,14 +7678,13 @@ interface MediaStream extends EventTarget { removeTrack(track: MediaStreamTrack): void; stop(): void; addEventListener(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var MediaStream: { prototype: MediaStream; new(streamOrTracks?: MediaStream | MediaStreamTrack[]): MediaStream; } - interface MediaStreamAudioSourceNode extends AudioNode { } @@ -7933,7 +7692,6 @@ declare var MediaStreamAudioSourceNode: { prototype: MediaStreamAudioSourceNode; new(): MediaStreamAudioSourceNode; } - interface MediaStreamError { readonly constraintName: string | null; readonly message: string | null; @@ -7944,8 +7702,7 @@ declare var MediaStreamError: { prototype: MediaStreamError; new(): MediaStreamError; } - -interface MediaStreamErrorEvent extends Event { +interface MediaStreamErrorEvent extends Event { readonly error: MediaStreamError | null; } @@ -7953,8 +7710,7 @@ declare var MediaStreamErrorEvent: { prototype: MediaStreamErrorEvent; new(typeArg: string, eventInitDict?: MediaStreamErrorEventInit): MediaStreamErrorEvent; } - -interface MediaStreamEvent extends Event { +interface MediaStreamEvent extends Event { readonly stream: MediaStream | null; } @@ -7969,17 +7725,16 @@ interface MediaStreamTrackEventMap { "overconstrained": MediaStreamErrorEvent; "unmute": Event; } - interface MediaStreamTrack extends EventTarget { enabled: boolean; readonly id: string; readonly kind: string; readonly label: string; readonly muted: boolean; - onended: (this: MediaStreamTrack, ev: MediaStreamErrorEvent) => any; - onmute: (this: MediaStreamTrack, ev: Event) => any; - onoverconstrained: (this: MediaStreamTrack, ev: MediaStreamErrorEvent) => any; - onunmute: (this: MediaStreamTrack, ev: Event) => any; + onended: (this: MediaStreamTrack, ev: MediaStreamErrorEvent) => any; + onmute: (this: MediaStreamTrack, ev: Event) => any; + onoverconstrained: (this: MediaStreamTrack, ev: MediaStreamErrorEvent) => any; + onunmute: (this: MediaStreamTrack, ev: Event) => any; readonly readonly: boolean; readonly readyState: string; readonly remote: boolean; @@ -7990,15 +7745,14 @@ interface MediaStreamTrack extends EventTarget { getSettings(): MediaTrackSettings; stop(): void; addEventListener(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var MediaStreamTrack: { prototype: MediaStreamTrack; new(): MediaStreamTrack; } - -interface MediaStreamTrackEvent extends Event { +interface MediaStreamTrackEvent extends Event { readonly track: MediaStreamTrack; } @@ -8006,7 +7760,6 @@ declare var MediaStreamTrackEvent: { prototype: MediaStreamTrackEvent; new(typeArg: string, eventInitDict?: MediaStreamTrackEventInit): MediaStreamTrackEvent; } - interface MessageChannel { readonly port1: MessagePort; readonly port2: MessagePort; @@ -8016,8 +7769,7 @@ declare var MessageChannel: { prototype: MessageChannel; new(): MessageChannel; } - -interface MessageEvent extends Event { +interface MessageEvent extends Event { readonly data: any; readonly origin: string; readonly ports: any; @@ -8033,21 +7785,19 @@ declare var MessageEvent: { interface MessagePortEventMap { "message": MessageEvent; } - interface MessagePort extends EventTarget { - onmessage: (this: MessagePort, ev: MessageEvent) => any; + onmessage: (this: MessagePort, ev: MessageEvent) => any; close(): void; postMessage(message?: any, transfer?: any[]): void; start(): void; addEventListener(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var MessagePort: { prototype: MessagePort; new(): MessagePort; } - interface MimeType { readonly description: string; readonly enabledPlugin: Plugin; @@ -8059,7 +7809,6 @@ declare var MimeType: { prototype: MimeType; new(): MimeType; } - interface MimeTypeArray { readonly length: number; item(index: number): Plugin; @@ -8071,8 +7820,7 @@ declare var MimeTypeArray: { prototype: MimeTypeArray; new(): MimeTypeArray; } - -interface MouseEvent extends UIEvent { +interface MouseEvent extends UIEvent { readonly altKey: boolean; readonly button: number; readonly buttons: number; @@ -8105,8 +7853,7 @@ declare var MouseEvent: { prototype: MouseEvent; new(typeArg: string, eventInitDict?: MouseEventInit): MouseEvent; } - -interface MutationEvent extends Event { +interface MutationEvent extends Event { readonly attrChange: number; readonly attrName: string; readonly newValue: string; @@ -8125,7 +7872,6 @@ declare var MutationEvent: { readonly MODIFICATION: number; readonly REMOVAL: number; } - interface MutationObserver { disconnect(): void; observe(target: Node, options: MutationObserverInit): void; @@ -8136,7 +7882,6 @@ declare var MutationObserver: { prototype: MutationObserver; new(callback: MutationCallback): MutationObserver; } - interface MutationRecord { readonly addedNodes: NodeList; readonly attributeName: string | null; @@ -8153,7 +7898,6 @@ declare var MutationRecord: { prototype: MutationRecord; new(): MutationRecord; } - interface NamedNodeMap { readonly length: number; getNamedItem(name: string): Attr; @@ -8170,8 +7914,7 @@ declare var NamedNodeMap: { prototype: NamedNodeMap; new(): NamedNodeMap; } - -interface NavigationCompletedEvent extends NavigationEvent { +interface NavigationCompletedEvent extends NavigationEvent { readonly isSuccess: boolean; readonly webErrorStatus: number; } @@ -8180,8 +7923,7 @@ declare var NavigationCompletedEvent: { prototype: NavigationCompletedEvent; new(): NavigationCompletedEvent; } - -interface NavigationEvent extends Event { +interface NavigationEvent extends Event { readonly uri: string; } @@ -8189,8 +7931,7 @@ declare var NavigationEvent: { prototype: NavigationEvent; new(): NavigationEvent; } - -interface NavigationEventWithReferrer extends NavigationEvent { +interface NavigationEventWithReferrer extends NavigationEvent { readonly referer: string; } @@ -8198,7 +7939,6 @@ declare var NavigationEventWithReferrer: { prototype: NavigationEventWithReferrer; new(): NavigationEventWithReferrer; } - interface Navigator extends Object, NavigatorID, NavigatorOnLine, NavigatorContentUtils, NavigatorStorageUtils, NavigatorGeolocation, MSNavigatorDoNotTrack, MSFileSaver, NavigatorBeacon, NavigatorConcurrentHardware, NavigatorUserMedia { readonly authentication: WebAuthentication; readonly cookieEnabled: boolean; @@ -8225,7 +7965,6 @@ declare var Navigator: { prototype: Navigator; new(): Navigator; } - interface Node extends EventTarget { readonly attributes: NamedNodeMap; readonly baseURI: string | null; @@ -8300,7 +8039,6 @@ declare var Node: { readonly PROCESSING_INSTRUCTION_NODE: number; readonly TEXT_NODE: number; } - interface NodeFilter { acceptNode(n: Node): number; } @@ -8323,7 +8061,6 @@ declare var NodeFilter: { readonly SHOW_PROCESSING_INSTRUCTION: number; readonly SHOW_TEXT: number; } - interface NodeIterator { readonly expandEntityReferences: boolean; readonly filter: NodeFilter; @@ -8338,7 +8075,6 @@ declare var NodeIterator: { prototype: NodeIterator; new(): NodeIterator; } - interface NodeList { readonly length: number; item(index: number): Node; @@ -8356,22 +8092,21 @@ interface NotificationEventMap { "error": Event; "show": Event; } - interface Notification extends EventTarget { readonly body: string; readonly dir: string; 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; + 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 tag: string; readonly title: string; close(): void; addEventListener(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var Notification: { @@ -8379,7 +8114,6 @@ declare var Notification: { new(title: string, options?: NotificationOptions): Notification; requestPermission(callback?: NotificationPermissionCallback): Promise; } - interface OES_element_index_uint { } @@ -8387,7 +8121,6 @@ declare var OES_element_index_uint: { prototype: OES_element_index_uint; new(): OES_element_index_uint; } - interface OES_standard_derivatives { readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: number; } @@ -8397,7 +8130,6 @@ declare var OES_standard_derivatives: { new(): OES_standard_derivatives; readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: number; } - interface OES_texture_float { } @@ -8405,7 +8137,6 @@ declare var OES_texture_float: { prototype: OES_texture_float; new(): OES_texture_float; } - interface OES_texture_float_linear { } @@ -8413,7 +8144,6 @@ declare var OES_texture_float_linear: { prototype: OES_texture_float_linear; new(): OES_texture_float_linear; } - interface OES_texture_half_float { readonly HALF_FLOAT_OES: number; } @@ -8423,7 +8153,6 @@ declare var OES_texture_half_float: { new(): OES_texture_half_float; readonly HALF_FLOAT_OES: number; } - interface OES_texture_half_float_linear { } @@ -8431,8 +8160,7 @@ declare var OES_texture_half_float_linear: { prototype: OES_texture_half_float_linear; new(): OES_texture_half_float_linear; } - -interface OfflineAudioCompletionEvent extends Event { +interface OfflineAudioCompletionEvent extends Event { readonly renderedBuffer: AudioBuffer; } @@ -8444,14 +8172,13 @@ declare var OfflineAudioCompletionEvent: { interface OfflineAudioContextEventMap extends AudioContextEventMap { "complete": OfflineAudioCompletionEvent; } - interface OfflineAudioContext extends AudioContextBase { readonly length: number; - oncomplete: (this: OfflineAudioContext, ev: OfflineAudioCompletionEvent) => any; + oncomplete: (this: OfflineAudioContext, ev: OfflineAudioCompletionEvent) => any; startRendering(): Promise; suspend(suspendTime: number): Promise; addEventListener(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var OfflineAudioContext: { @@ -8462,25 +8189,23 @@ declare var OfflineAudioContext: { interface OscillatorNodeEventMap { "ended": MediaStreamErrorEvent; } - interface OscillatorNode extends AudioNode { readonly detune: AudioParam; readonly frequency: AudioParam; - onended: (this: OscillatorNode, ev: MediaStreamErrorEvent) => any; + onended: (this: OscillatorNode, ev: MediaStreamErrorEvent) => any; type: string; setPeriodicWave(periodicWave: PeriodicWave): void; start(when?: number): void; stop(when?: number): void; addEventListener(type: K, listener: (this: OscillatorNode, ev: OscillatorNodeEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var OscillatorNode: { prototype: OscillatorNode; new(): OscillatorNode; } - -interface OverflowEvent extends UIEvent { +interface OverflowEvent extends UIEvent { readonly horizontalOverflow: boolean; readonly orient: number; readonly verticalOverflow: boolean; @@ -8496,8 +8221,7 @@ declare var OverflowEvent: { readonly HORIZONTAL: number; readonly VERTICAL: number; } - -interface PageTransitionEvent extends Event { +interface PageTransitionEvent extends Event { readonly persisted: boolean; } @@ -8505,7 +8229,6 @@ declare var PageTransitionEvent: { prototype: PageTransitionEvent; new(): PageTransitionEvent; } - interface PannerNode extends AudioNode { coneInnerAngle: number; coneOuterAngle: number; @@ -8524,7 +8247,6 @@ declare var PannerNode: { prototype: PannerNode; new(): PannerNode; } - interface Path2D extends Object, CanvasPathMethods { } @@ -8532,7 +8254,6 @@ declare var Path2D: { prototype: Path2D; new(path?: Path2D): Path2D; } - interface PaymentAddress { readonly addressLine: string[]; readonly city: string; @@ -8557,25 +8278,23 @@ interface PaymentRequestEventMap { "shippingaddresschange": Event; "shippingoptionchange": Event; } - interface PaymentRequest extends EventTarget { - onshippingaddresschange: (this: PaymentRequest, ev: Event) => any; - onshippingoptionchange: (this: PaymentRequest, ev: Event) => any; + onshippingaddresschange: (this: PaymentRequest, ev: Event) => any; + onshippingoptionchange: (this: PaymentRequest, ev: Event) => any; readonly shippingAddress: PaymentAddress | null; readonly shippingOption: string | null; readonly shippingType: string | null; abort(): Promise; show(): Promise; addEventListener(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var PaymentRequest: { prototype: PaymentRequest; new(methodData: PaymentMethodData[], details: PaymentDetails, options?: PaymentOptions): PaymentRequest; } - -interface PaymentRequestUpdateEvent extends Event { +interface PaymentRequestUpdateEvent extends Event { updateWith(d: Promise): void; } @@ -8583,7 +8302,6 @@ declare var PaymentRequestUpdateEvent: { prototype: PaymentRequestUpdateEvent; new(type: string, eventInitDict?: PaymentRequestUpdateEventInit): PaymentRequestUpdateEvent; } - interface PaymentResponse { readonly details: any; readonly methodName: string; @@ -8600,7 +8318,6 @@ declare var PaymentResponse: { prototype: PaymentResponse; new(): PaymentResponse; } - interface PerfWidgetExternal { readonly activeNetworkRequestCount: number; readonly averageFrameTime: number; @@ -8629,7 +8346,6 @@ declare var PerfWidgetExternal: { prototype: PerfWidgetExternal; new(): PerfWidgetExternal; } - interface Performance { readonly navigation: PerformanceNavigation; readonly timing: PerformanceTiming; @@ -8652,7 +8368,6 @@ declare var Performance: { prototype: Performance; new(): Performance; } - interface PerformanceEntry { readonly duration: number; readonly entryType: string; @@ -8664,7 +8379,6 @@ declare var PerformanceEntry: { prototype: PerformanceEntry; new(): PerformanceEntry; } - interface PerformanceMark extends PerformanceEntry { } @@ -8672,7 +8386,6 @@ declare var PerformanceMark: { prototype: PerformanceMark; new(): PerformanceMark; } - interface PerformanceMeasure extends PerformanceEntry { } @@ -8680,7 +8393,6 @@ declare var PerformanceMeasure: { prototype: PerformanceMeasure; new(): PerformanceMeasure; } - interface PerformanceNavigation { readonly redirectCount: number; readonly type: number; @@ -8699,7 +8411,6 @@ declare var PerformanceNavigation: { readonly TYPE_RELOAD: number; readonly TYPE_RESERVED: number; } - interface PerformanceNavigationTiming extends PerformanceEntry { readonly connectEnd: number; readonly connectStart: number; @@ -8729,7 +8440,6 @@ declare var PerformanceNavigationTiming: { prototype: PerformanceNavigationTiming; new(): PerformanceNavigationTiming; } - interface PerformanceResourceTiming extends PerformanceEntry { readonly connectEnd: number; readonly connectStart: number; @@ -8748,7 +8458,6 @@ declare var PerformanceResourceTiming: { prototype: PerformanceResourceTiming; new(): PerformanceResourceTiming; } - interface PerformanceTiming { readonly connectEnd: number; readonly connectStart: number; @@ -8779,7 +8488,6 @@ declare var PerformanceTiming: { prototype: PerformanceTiming; new(): PerformanceTiming; } - interface PeriodicWave { } @@ -8787,7 +8495,6 @@ declare var PeriodicWave: { prototype: PeriodicWave; new(): PeriodicWave; } - interface PermissionRequest extends DeferredPermissionRequest { readonly state: string; defer(): void; @@ -8797,8 +8504,7 @@ declare var PermissionRequest: { prototype: PermissionRequest; new(): PermissionRequest; } - -interface PermissionRequestedEvent extends Event { +interface PermissionRequestedEvent extends Event { readonly permissionRequest: PermissionRequest; } @@ -8806,7 +8512,6 @@ declare var PermissionRequestedEvent: { prototype: PermissionRequestedEvent; new(): PermissionRequestedEvent; } - interface Plugin { readonly description: string; readonly filename: string; @@ -8822,7 +8527,6 @@ declare var Plugin: { prototype: Plugin; new(): Plugin; } - interface PluginArray { readonly length: number; item(index: number): Plugin; @@ -8835,8 +8539,7 @@ declare var PluginArray: { prototype: PluginArray; new(): PluginArray; } - -interface PointerEvent extends MouseEvent { +interface PointerEvent extends MouseEvent { readonly currentPoint: any; readonly height: number; readonly hwTimestamp: number; @@ -8858,8 +8561,7 @@ declare var PointerEvent: { prototype: PointerEvent; new(typeArg: string, eventInitDict?: PointerEventInit): PointerEvent; } - -interface PopStateEvent extends Event { +interface PopStateEvent extends Event { readonly state: any; initPopStateEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, stateArg: any): void; } @@ -8868,7 +8570,6 @@ declare var PopStateEvent: { prototype: PopStateEvent; new(typeArg: string, eventInitDict?: PopStateEventInit): PopStateEvent; } - interface Position { readonly coords: Coordinates; readonly timestamp: number; @@ -8878,7 +8579,6 @@ declare var Position: { prototype: Position; new(): Position; } - interface PositionError { readonly code: number; readonly message: string; @@ -8895,7 +8595,6 @@ declare var PositionError: { readonly POSITION_UNAVAILABLE: number; readonly TIMEOUT: number; } - interface ProcessingInstruction extends CharacterData { readonly target: string; } @@ -8904,8 +8603,7 @@ declare var ProcessingInstruction: { prototype: ProcessingInstruction; new(): ProcessingInstruction; } - -interface ProgressEvent extends Event { +interface ProgressEvent extends Event { readonly lengthComputable: boolean; readonly loaded: number; readonly total: number; @@ -8916,7 +8614,6 @@ declare var ProgressEvent: { prototype: ProgressEvent; new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent; } - interface PushManager { getSubscription(): Promise; permissionState(options?: PushSubscriptionOptionsInit): Promise; @@ -8927,7 +8624,6 @@ declare var PushManager: { prototype: PushManager; new(): PushManager; } - interface PushSubscription { readonly endpoint: USVString; readonly options: PushSubscriptionOptions; @@ -8940,7 +8636,6 @@ declare var PushSubscription: { prototype: PushSubscription; new(): PushSubscription; } - interface PushSubscriptionOptions { readonly applicationServerKey: ArrayBuffer | null; readonly userVisibleOnly: boolean; @@ -8950,8 +8645,7 @@ declare var PushSubscriptionOptions: { prototype: PushSubscriptionOptions; new(): PushSubscriptionOptions; } - -interface RTCDTMFToneChangeEvent extends Event { +interface RTCDTMFToneChangeEvent extends Event { readonly tone: string; } @@ -8964,10 +8658,9 @@ interface RTCDtlsTransportEventMap { "dtlsstatechange": RTCDtlsTransportStateChangedEvent; "error": Event; } - interface RTCDtlsTransport extends RTCStatsProvider { - ondtlsstatechange: ((this: RTCDtlsTransport, ev: RTCDtlsTransportStateChangedEvent) => any) | null; - onerror: ((this: RTCDtlsTransport, ev: Event) => any) | null; + ondtlsstatechange: ((this: RTCDtlsTransport, ev: RTCDtlsTransportStateChangedEvent) => any) | null; + onerror: ((this: RTCDtlsTransport, ev: Event) => any) | null; readonly state: string; readonly transport: RTCIceTransport; getLocalParameters(): RTCDtlsParameters; @@ -8976,15 +8669,14 @@ interface RTCDtlsTransport extends RTCStatsProvider { start(remoteParameters: RTCDtlsParameters): void; stop(): void; addEventListener(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var RTCDtlsTransport: { prototype: RTCDtlsTransport; new(transport: RTCIceTransport): RTCDtlsTransport; } - -interface RTCDtlsTransportStateChangedEvent extends Event { +interface RTCDtlsTransportStateChangedEvent extends Event { readonly state: string; } @@ -8996,24 +8688,22 @@ declare var RTCDtlsTransportStateChangedEvent: { interface RTCDtmfSenderEventMap { "tonechange": RTCDTMFToneChangeEvent; } - interface RTCDtmfSender extends EventTarget { readonly canInsertDTMF: boolean; readonly duration: number; readonly interToneGap: number; - ontonechange: (this: RTCDtmfSender, ev: RTCDTMFToneChangeEvent) => any; + ontonechange: (this: RTCDtmfSender, ev: RTCDTMFToneChangeEvent) => any; readonly sender: RTCRtpSender; readonly toneBuffer: string; insertDTMF(tones: string, duration?: number, interToneGap?: number): void; addEventListener(type: K, listener: (this: RTCDtmfSender, ev: RTCDtmfSenderEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var RTCDtmfSender: { prototype: RTCDtmfSender; new(sender: RTCRtpSender): RTCDtmfSender; } - interface RTCIceCandidate { candidate: string | null; sdpMLineIndex: number | null; @@ -9025,8 +8715,7 @@ declare var RTCIceCandidate: { prototype: RTCIceCandidate; new(candidateInitDict?: RTCIceCandidateInit): RTCIceCandidate; } - -interface RTCIceCandidatePairChangedEvent extends Event { +interface RTCIceCandidatePairChangedEvent extends Event { readonly pair: RTCIceCandidatePair; } @@ -9039,24 +8728,22 @@ interface RTCIceGathererEventMap { "error": Event; "localcandidate": RTCIceGathererEvent; } - interface RTCIceGatherer extends RTCStatsProvider { readonly component: string; - onerror: ((this: RTCIceGatherer, ev: Event) => any) | null; - onlocalcandidate: ((this: RTCIceGatherer, ev: RTCIceGathererEvent) => any) | null; + onerror: ((this: RTCIceGatherer, ev: Event) => any) | null; + onlocalcandidate: ((this: RTCIceGatherer, ev: RTCIceGathererEvent) => any) | null; createAssociatedGatherer(): RTCIceGatherer; getLocalCandidates(): RTCIceCandidateDictionary[]; getLocalParameters(): RTCIceParameters; addEventListener(type: K, listener: (this: RTCIceGatherer, ev: RTCIceGathererEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var RTCIceGatherer: { prototype: RTCIceGatherer; new(options: RTCIceGatherOptions): RTCIceGatherer; } - -interface RTCIceGathererEvent extends Event { +interface RTCIceGathererEvent extends Event { readonly candidate: RTCIceCandidateDictionary | RTCIceCandidateComplete; } @@ -9069,12 +8756,11 @@ interface RTCIceTransportEventMap { "candidatepairchange": RTCIceCandidatePairChangedEvent; "icestatechange": RTCIceTransportStateChangedEvent; } - interface RTCIceTransport extends RTCStatsProvider { readonly component: string; readonly iceGatherer: RTCIceGatherer | null; - oncandidatepairchange: ((this: RTCIceTransport, ev: RTCIceCandidatePairChangedEvent) => any) | null; - onicestatechange: ((this: RTCIceTransport, ev: RTCIceTransportStateChangedEvent) => any) | null; + oncandidatepairchange: ((this: RTCIceTransport, ev: RTCIceCandidatePairChangedEvent) => any) | null; + onicestatechange: ((this: RTCIceTransport, ev: RTCIceTransportStateChangedEvent) => any) | null; readonly role: string; readonly state: string; addRemoteCandidate(remoteCandidate: RTCIceCandidateDictionary | RTCIceCandidateComplete): void; @@ -9086,15 +8772,14 @@ interface RTCIceTransport extends RTCStatsProvider { start(gatherer: RTCIceGatherer, remoteParameters: RTCIceParameters, role?: string): void; stop(): void; addEventListener(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var RTCIceTransport: { prototype: RTCIceTransport; new(): RTCIceTransport; } - -interface RTCIceTransportStateChangedEvent extends Event { +interface RTCIceTransportStateChangedEvent extends Event { readonly state: string; } @@ -9112,19 +8797,18 @@ interface RTCPeerConnectionEventMap { "removestream": MediaStreamEvent; "signalingstatechange": Event; } - interface RTCPeerConnection extends EventTarget { readonly canTrickleIceCandidates: boolean | null; readonly iceConnectionState: string; readonly iceGatheringState: string; readonly localDescription: RTCSessionDescription | null; - onaddstream: (this: RTCPeerConnection, ev: MediaStreamEvent) => any; - onicecandidate: (this: RTCPeerConnection, ev: RTCPeerConnectionIceEvent) => any; - oniceconnectionstatechange: (this: RTCPeerConnection, ev: Event) => any; - onicegatheringstatechange: (this: RTCPeerConnection, ev: Event) => any; - onnegotiationneeded: (this: RTCPeerConnection, ev: Event) => any; - onremovestream: (this: RTCPeerConnection, ev: MediaStreamEvent) => any; - onsignalingstatechange: (this: RTCPeerConnection, ev: Event) => any; + onaddstream: (this: RTCPeerConnection, ev: MediaStreamEvent) => any; + onicecandidate: (this: RTCPeerConnection, ev: RTCPeerConnectionIceEvent) => any; + oniceconnectionstatechange: (this: RTCPeerConnection, ev: Event) => any; + onicegatheringstatechange: (this: RTCPeerConnection, ev: Event) => any; + onnegotiationneeded: (this: RTCPeerConnection, ev: Event) => any; + onremovestream: (this: RTCPeerConnection, ev: MediaStreamEvent) => any; + onsignalingstatechange: (this: RTCPeerConnection, ev: Event) => any; readonly remoteDescription: RTCSessionDescription | null; readonly signalingState: string; addIceCandidate(candidate: RTCIceCandidate, successCallback?: VoidFunction, failureCallback?: RTCPeerConnectionErrorCallback): Promise; @@ -9141,15 +8825,14 @@ interface RTCPeerConnection extends EventTarget { setLocalDescription(description: RTCSessionDescription, successCallback?: VoidFunction, failureCallback?: RTCPeerConnectionErrorCallback): Promise; setRemoteDescription(description: RTCSessionDescription, successCallback?: VoidFunction, failureCallback?: RTCPeerConnectionErrorCallback): Promise; addEventListener(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var RTCPeerConnection: { prototype: RTCPeerConnection; new(configuration: RTCConfiguration): RTCPeerConnection; } - -interface RTCPeerConnectionIceEvent extends Event { +interface RTCPeerConnectionIceEvent extends Event { readonly candidate: RTCIceCandidate; } @@ -9161,9 +8844,8 @@ declare var RTCPeerConnectionIceEvent: { interface RTCRtpReceiverEventMap { "error": Event; } - interface RTCRtpReceiver extends RTCStatsProvider { - onerror: ((this: RTCRtpReceiver, ev: Event) => any) | null; + onerror: ((this: RTCRtpReceiver, ev: Event) => any) | null; readonly rtcpTransport: RTCDtlsTransport; readonly track: MediaStreamTrack | null; readonly transport: RTCDtlsTransport | RTCSrtpSdesTransport; @@ -9173,7 +8855,7 @@ interface RTCRtpReceiver extends RTCStatsProvider { setTransport(transport: RTCDtlsTransport | RTCSrtpSdesTransport, rtcpTransport?: RTCDtlsTransport): void; stop(): void; addEventListener(type: K, listener: (this: RTCRtpReceiver, ev: RTCRtpReceiverEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var RTCRtpReceiver: { @@ -9186,10 +8868,9 @@ interface RTCRtpSenderEventMap { "error": Event; "ssrcconflict": RTCSsrcConflictEvent; } - interface RTCRtpSender extends RTCStatsProvider { - onerror: ((this: RTCRtpSender, ev: Event) => any) | null; - onssrcconflict: ((this: RTCRtpSender, ev: RTCSsrcConflictEvent) => any) | null; + onerror: ((this: RTCRtpSender, ev: Event) => any) | null; + onssrcconflict: ((this: RTCRtpSender, ev: RTCSsrcConflictEvent) => any) | null; readonly rtcpTransport: RTCDtlsTransport; readonly track: MediaStreamTrack; readonly transport: RTCDtlsTransport | RTCSrtpSdesTransport; @@ -9198,7 +8879,7 @@ interface RTCRtpSender extends RTCStatsProvider { setTransport(transport: RTCDtlsTransport | RTCSrtpSdesTransport, rtcpTransport?: RTCDtlsTransport): void; stop(): void; addEventListener(type: K, listener: (this: RTCRtpSender, ev: RTCRtpSenderEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var RTCRtpSender: { @@ -9206,7 +8887,6 @@ declare var RTCRtpSender: { new(track: MediaStreamTrack, transport: RTCDtlsTransport | RTCSrtpSdesTransport, rtcpTransport?: RTCDtlsTransport): RTCRtpSender; getCapabilities(kind?: string): RTCRtpCapabilities; } - interface RTCSessionDescription { sdp: string | null; type: string | null; @@ -9221,12 +8901,11 @@ declare var RTCSessionDescription: { interface RTCSrtpSdesTransportEventMap { "error": Event; } - interface RTCSrtpSdesTransport extends EventTarget { - onerror: ((this: RTCSrtpSdesTransport, ev: Event) => any) | null; + onerror: ((this: RTCSrtpSdesTransport, ev: Event) => any) | null; readonly transport: RTCIceTransport; addEventListener(type: K, listener: (this: RTCSrtpSdesTransport, ev: RTCSrtpSdesTransportEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var RTCSrtpSdesTransport: { @@ -9234,8 +8913,7 @@ declare var RTCSrtpSdesTransport: { new(transport: RTCIceTransport, encryptParameters: RTCSrtpSdesParameters, decryptParameters: RTCSrtpSdesParameters): RTCSrtpSdesTransport; getLocalParameters(): RTCSrtpSdesParameters[]; } - -interface RTCSsrcConflictEvent extends Event { +interface RTCSsrcConflictEvent extends Event { readonly ssrc: number; } @@ -9243,7 +8921,6 @@ declare var RTCSsrcConflictEvent: { prototype: RTCSsrcConflictEvent; new(): RTCSsrcConflictEvent; } - interface RTCStatsProvider extends EventTarget { getStats(): Promise; msGetStats(): Promise; @@ -9253,7 +8930,6 @@ declare var RTCStatsProvider: { prototype: RTCStatsProvider; new(): RTCStatsProvider; } - interface Range { readonly collapsed: boolean; readonly commonAncestorContainer: Node; @@ -9297,7 +8973,6 @@ declare var Range: { readonly START_TO_END: number; readonly START_TO_START: number; } - interface ReadableStream { readonly locked: boolean; cancel(): Promise; @@ -9308,7 +8983,6 @@ declare var ReadableStream: { prototype: ReadableStream; new(): ReadableStream; } - interface ReadableStreamReader { cancel(): Promise; read(): Promise; @@ -9319,7 +8993,6 @@ declare var ReadableStreamReader: { prototype: ReadableStreamReader; new(): ReadableStreamReader; } - interface Request extends Object, Body { readonly cache: string; readonly credentials: string; @@ -9341,7 +9014,6 @@ declare var Request: { prototype: Request; new(input: Request | string, init?: RequestInit): Request; } - interface Response extends Object, Body { readonly body: ReadableStream | null; readonly headers: Headers; @@ -9357,18 +9029,16 @@ declare var Response: { prototype: Response; new(body?: any, init?: ResponseInit): Response; } - interface SVGAElement extends SVGGraphicsElement, SVGURIReference { readonly target: SVGAnimatedString; addEventListener(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGAElement: { prototype: SVGAElement; new(): SVGAElement; } - interface SVGAngle { readonly unitType: number; value: number; @@ -9392,7 +9062,6 @@ declare var SVGAngle: { readonly SVG_ANGLETYPE_UNKNOWN: number; readonly SVG_ANGLETYPE_UNSPECIFIED: number; } - interface SVGAnimatedAngle { readonly animVal: SVGAngle; readonly baseVal: SVGAngle; @@ -9402,7 +9071,6 @@ declare var SVGAnimatedAngle: { prototype: SVGAnimatedAngle; new(): SVGAnimatedAngle; } - interface SVGAnimatedBoolean { readonly animVal: boolean; baseVal: boolean; @@ -9412,7 +9080,6 @@ declare var SVGAnimatedBoolean: { prototype: SVGAnimatedBoolean; new(): SVGAnimatedBoolean; } - interface SVGAnimatedEnumeration { readonly animVal: number; baseVal: number; @@ -9422,7 +9089,6 @@ declare var SVGAnimatedEnumeration: { prototype: SVGAnimatedEnumeration; new(): SVGAnimatedEnumeration; } - interface SVGAnimatedInteger { readonly animVal: number; baseVal: number; @@ -9432,7 +9098,6 @@ declare var SVGAnimatedInteger: { prototype: SVGAnimatedInteger; new(): SVGAnimatedInteger; } - interface SVGAnimatedLength { readonly animVal: SVGLength; readonly baseVal: SVGLength; @@ -9442,7 +9107,6 @@ declare var SVGAnimatedLength: { prototype: SVGAnimatedLength; new(): SVGAnimatedLength; } - interface SVGAnimatedLengthList { readonly animVal: SVGLengthList; readonly baseVal: SVGLengthList; @@ -9452,7 +9116,6 @@ declare var SVGAnimatedLengthList: { prototype: SVGAnimatedLengthList; new(): SVGAnimatedLengthList; } - interface SVGAnimatedNumber { readonly animVal: number; baseVal: number; @@ -9462,7 +9125,6 @@ declare var SVGAnimatedNumber: { prototype: SVGAnimatedNumber; new(): SVGAnimatedNumber; } - interface SVGAnimatedNumberList { readonly animVal: SVGNumberList; readonly baseVal: SVGNumberList; @@ -9472,7 +9134,6 @@ declare var SVGAnimatedNumberList: { prototype: SVGAnimatedNumberList; new(): SVGAnimatedNumberList; } - interface SVGAnimatedPreserveAspectRatio { readonly animVal: SVGPreserveAspectRatio; readonly baseVal: SVGPreserveAspectRatio; @@ -9482,7 +9143,6 @@ declare var SVGAnimatedPreserveAspectRatio: { prototype: SVGAnimatedPreserveAspectRatio; new(): SVGAnimatedPreserveAspectRatio; } - interface SVGAnimatedRect { readonly animVal: SVGRect; readonly baseVal: SVGRect; @@ -9492,7 +9152,6 @@ declare var SVGAnimatedRect: { prototype: SVGAnimatedRect; new(): SVGAnimatedRect; } - interface SVGAnimatedString { readonly animVal: string; baseVal: string; @@ -9502,7 +9161,6 @@ declare var SVGAnimatedString: { prototype: SVGAnimatedString; new(): SVGAnimatedString; } - interface SVGAnimatedTransformList { readonly animVal: SVGTransformList; readonly baseVal: SVGTransformList; @@ -9512,31 +9170,28 @@ declare var SVGAnimatedTransformList: { prototype: SVGAnimatedTransformList; new(): SVGAnimatedTransformList; } - interface SVGCircleElement extends SVGGraphicsElement { readonly cx: SVGAnimatedLength; readonly cy: SVGAnimatedLength; readonly r: SVGAnimatedLength; addEventListener(type: K, listener: (this: SVGCircleElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGCircleElement: { prototype: SVGCircleElement; new(): SVGCircleElement; } - interface SVGClipPathElement extends SVGGraphicsElement, SVGUnitTypes { readonly clipPathUnits: SVGAnimatedEnumeration; addEventListener(type: K, listener: (this: SVGClipPathElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGClipPathElement: { prototype: SVGClipPathElement; new(): SVGClipPathElement; } - interface SVGComponentTransferFunctionElement extends SVGElement { readonly amplitude: SVGAnimatedNumber; readonly exponent: SVGAnimatedNumber; @@ -9552,7 +9207,7 @@ interface SVGComponentTransferFunctionElement extends SVGElement { readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: number; readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: number; addEventListener(type: K, listener: (this: SVGComponentTransferFunctionElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGComponentTransferFunctionElement: { @@ -9565,20 +9220,18 @@ declare var SVGComponentTransferFunctionElement: { readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: number; readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: number; } - interface SVGDefsElement extends SVGGraphicsElement { addEventListener(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGDefsElement: { prototype: SVGDefsElement; new(): SVGDefsElement; } - interface SVGDescElement extends SVGElement { addEventListener(type: K, listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGDescElement: { @@ -9598,32 +9251,30 @@ interface SVGElementEventMap extends ElementEventMap { "mouseover": MouseEvent; "mouseup": MouseEvent; } - interface SVGElement extends Element { className: any; - onclick: (this: SVGElement, ev: MouseEvent) => any; - ondblclick: (this: SVGElement, ev: MouseEvent) => any; - onfocusin: (this: SVGElement, ev: FocusEvent) => any; - onfocusout: (this: SVGElement, ev: FocusEvent) => any; - onload: (this: SVGElement, ev: Event) => any; - onmousedown: (this: SVGElement, ev: MouseEvent) => any; - onmousemove: (this: SVGElement, ev: MouseEvent) => any; - onmouseout: (this: SVGElement, ev: MouseEvent) => any; - onmouseover: (this: SVGElement, ev: MouseEvent) => any; - onmouseup: (this: SVGElement, ev: MouseEvent) => any; + onclick: (this: SVGElement, ev: MouseEvent) => any; + ondblclick: (this: SVGElement, ev: MouseEvent) => any; + onfocusin: (this: SVGElement, ev: FocusEvent) => any; + onfocusout: (this: SVGElement, ev: FocusEvent) => any; + onload: (this: SVGElement, ev: Event) => any; + onmousedown: (this: SVGElement, ev: MouseEvent) => any; + onmousemove: (this: SVGElement, ev: MouseEvent) => any; + onmouseout: (this: SVGElement, ev: MouseEvent) => any; + onmouseover: (this: SVGElement, ev: MouseEvent) => any; + onmouseup: (this: SVGElement, ev: MouseEvent) => any; readonly ownerSVGElement: SVGSVGElement; readonly style: CSSStyleDeclaration; readonly viewportElement: SVGElement; xmlbase: string; addEventListener(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGElement: { prototype: SVGElement; new(): SVGElement; } - interface SVGElementInstance extends EventTarget { readonly childNodes: SVGElementInstanceList; readonly correspondingElement: SVGElement; @@ -9639,7 +9290,6 @@ declare var SVGElementInstance: { prototype: SVGElementInstance; new(): SVGElementInstance; } - interface SVGElementInstanceList { readonly length: number; item(index: number): SVGElementInstance; @@ -9649,21 +9299,19 @@ declare var SVGElementInstanceList: { prototype: SVGElementInstanceList; new(): SVGElementInstanceList; } - interface SVGEllipseElement extends SVGGraphicsElement { readonly cx: SVGAnimatedLength; readonly cy: SVGAnimatedLength; readonly rx: SVGAnimatedLength; readonly ry: SVGAnimatedLength; addEventListener(type: K, listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGEllipseElement: { prototype: SVGEllipseElement; new(): SVGEllipseElement; } - interface SVGFEBlendElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { readonly in1: SVGAnimatedString; readonly in2: SVGAnimatedString; @@ -9686,7 +9334,7 @@ interface SVGFEBlendElement extends SVGElement, SVGFilterPrimitiveStandardAttrib readonly SVG_FEBLEND_MODE_SOFT_LIGHT: number; readonly SVG_FEBLEND_MODE_UNKNOWN: number; addEventListener(type: K, listener: (this: SVGFEBlendElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFEBlendElement: { @@ -9710,7 +9358,6 @@ declare var SVGFEBlendElement: { readonly SVG_FEBLEND_MODE_SOFT_LIGHT: number; readonly SVG_FEBLEND_MODE_UNKNOWN: number; } - interface SVGFEColorMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { readonly in1: SVGAnimatedString; readonly type: SVGAnimatedEnumeration; @@ -9721,7 +9368,7 @@ interface SVGFEColorMatrixElement extends SVGElement, SVGFilterPrimitiveStandard readonly SVG_FECOLORMATRIX_TYPE_SATURATE: number; readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: number; addEventListener(type: K, listener: (this: SVGFEColorMatrixElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFEColorMatrixElement: { @@ -9733,18 +9380,16 @@ declare var SVGFEColorMatrixElement: { readonly SVG_FECOLORMATRIX_TYPE_SATURATE: number; readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: number; } - interface SVGFEComponentTransferElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { readonly in1: SVGAnimatedString; addEventListener(type: K, listener: (this: SVGFEComponentTransferElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFEComponentTransferElement: { prototype: SVGFEComponentTransferElement; new(): SVGFEComponentTransferElement; } - interface SVGFECompositeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { readonly in1: SVGAnimatedString; readonly in2: SVGAnimatedString; @@ -9761,7 +9406,7 @@ interface SVGFECompositeElement extends SVGElement, SVGFilterPrimitiveStandardAt readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: number; readonly SVG_FECOMPOSITE_OPERATOR_XOR: number; addEventListener(type: K, listener: (this: SVGFECompositeElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFECompositeElement: { @@ -9775,7 +9420,6 @@ declare var SVGFECompositeElement: { readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: number; readonly SVG_FECOMPOSITE_OPERATOR_XOR: number; } - interface SVGFEConvolveMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { readonly bias: SVGAnimatedNumber; readonly divisor: SVGAnimatedNumber; @@ -9794,7 +9438,7 @@ interface SVGFEConvolveMatrixElement extends SVGElement, SVGFilterPrimitiveStand readonly SVG_EDGEMODE_UNKNOWN: number; readonly SVG_EDGEMODE_WRAP: number; addEventListener(type: K, listener: (this: SVGFEConvolveMatrixElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFEConvolveMatrixElement: { @@ -9805,7 +9449,6 @@ declare var SVGFEConvolveMatrixElement: { readonly SVG_EDGEMODE_UNKNOWN: number; readonly SVG_EDGEMODE_WRAP: number; } - interface SVGFEDiffuseLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { readonly diffuseConstant: SVGAnimatedNumber; readonly in1: SVGAnimatedString; @@ -9813,14 +9456,13 @@ interface SVGFEDiffuseLightingElement extends SVGElement, SVGFilterPrimitiveStan readonly kernelUnitLengthY: SVGAnimatedNumber; readonly surfaceScale: SVGAnimatedNumber; addEventListener(type: K, listener: (this: SVGFEDiffuseLightingElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFEDiffuseLightingElement: { prototype: SVGFEDiffuseLightingElement; new(): SVGFEDiffuseLightingElement; } - interface SVGFEDisplacementMapElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { readonly in1: SVGAnimatedString; readonly in2: SVGAnimatedString; @@ -9833,7 +9475,7 @@ interface SVGFEDisplacementMapElement extends SVGElement, SVGFilterPrimitiveStan readonly SVG_CHANNEL_R: number; readonly SVG_CHANNEL_UNKNOWN: number; addEventListener(type: K, listener: (this: SVGFEDisplacementMapElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFEDisplacementMapElement: { @@ -9845,115 +9487,104 @@ declare var SVGFEDisplacementMapElement: { readonly SVG_CHANNEL_R: number; readonly SVG_CHANNEL_UNKNOWN: number; } - interface SVGFEDistantLightElement extends SVGElement { readonly azimuth: SVGAnimatedNumber; readonly elevation: SVGAnimatedNumber; addEventListener(type: K, listener: (this: SVGFEDistantLightElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFEDistantLightElement: { prototype: SVGFEDistantLightElement; new(): SVGFEDistantLightElement; } - interface SVGFEFloodElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { addEventListener(type: K, listener: (this: SVGFEFloodElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFEFloodElement: { prototype: SVGFEFloodElement; new(): SVGFEFloodElement; } - interface SVGFEFuncAElement extends SVGComponentTransferFunctionElement { addEventListener(type: K, listener: (this: SVGFEFuncAElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFEFuncAElement: { prototype: SVGFEFuncAElement; new(): SVGFEFuncAElement; } - interface SVGFEFuncBElement extends SVGComponentTransferFunctionElement { addEventListener(type: K, listener: (this: SVGFEFuncBElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFEFuncBElement: { prototype: SVGFEFuncBElement; new(): SVGFEFuncBElement; } - interface SVGFEFuncGElement extends SVGComponentTransferFunctionElement { addEventListener(type: K, listener: (this: SVGFEFuncGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFEFuncGElement: { prototype: SVGFEFuncGElement; new(): SVGFEFuncGElement; } - interface SVGFEFuncRElement extends SVGComponentTransferFunctionElement { addEventListener(type: K, listener: (this: SVGFEFuncRElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFEFuncRElement: { prototype: SVGFEFuncRElement; new(): SVGFEFuncRElement; } - interface SVGFEGaussianBlurElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { readonly in1: SVGAnimatedString; readonly stdDeviationX: SVGAnimatedNumber; readonly stdDeviationY: SVGAnimatedNumber; setStdDeviation(stdDeviationX: number, stdDeviationY: number): void; addEventListener(type: K, listener: (this: SVGFEGaussianBlurElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFEGaussianBlurElement: { prototype: SVGFEGaussianBlurElement; new(): SVGFEGaussianBlurElement; } - interface SVGFEImageElement extends SVGElement, SVGFilterPrimitiveStandardAttributes, SVGURIReference { readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio; addEventListener(type: K, listener: (this: SVGFEImageElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFEImageElement: { prototype: SVGFEImageElement; new(): SVGFEImageElement; } - interface SVGFEMergeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { addEventListener(type: K, listener: (this: SVGFEMergeElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFEMergeElement: { prototype: SVGFEMergeElement; new(): SVGFEMergeElement; } - interface SVGFEMergeNodeElement extends SVGElement { readonly in1: SVGAnimatedString; addEventListener(type: K, listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFEMergeNodeElement: { prototype: SVGFEMergeNodeElement; new(): SVGFEMergeNodeElement; } - interface SVGFEMorphologyElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { readonly in1: SVGAnimatedString; readonly operator: SVGAnimatedEnumeration; @@ -9963,7 +9594,7 @@ interface SVGFEMorphologyElement extends SVGElement, SVGFilterPrimitiveStandardA readonly SVG_MORPHOLOGY_OPERATOR_ERODE: number; readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: number; addEventListener(type: K, listener: (this: SVGFEMorphologyElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFEMorphologyElement: { @@ -9973,33 +9604,30 @@ declare var SVGFEMorphologyElement: { readonly SVG_MORPHOLOGY_OPERATOR_ERODE: number; readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: number; } - interface SVGFEOffsetElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { readonly dx: SVGAnimatedNumber; readonly dy: SVGAnimatedNumber; readonly in1: SVGAnimatedString; addEventListener(type: K, listener: (this: SVGFEOffsetElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFEOffsetElement: { prototype: SVGFEOffsetElement; new(): SVGFEOffsetElement; } - interface SVGFEPointLightElement extends SVGElement { readonly x: SVGAnimatedNumber; readonly y: SVGAnimatedNumber; readonly z: SVGAnimatedNumber; addEventListener(type: K, listener: (this: SVGFEPointLightElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFEPointLightElement: { prototype: SVGFEPointLightElement; new(): SVGFEPointLightElement; } - interface SVGFESpecularLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { readonly in1: SVGAnimatedString; readonly kernelUnitLengthX: SVGAnimatedNumber; @@ -10008,14 +9636,13 @@ interface SVGFESpecularLightingElement extends SVGElement, SVGFilterPrimitiveSta readonly specularExponent: SVGAnimatedNumber; readonly surfaceScale: SVGAnimatedNumber; addEventListener(type: K, listener: (this: SVGFESpecularLightingElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFESpecularLightingElement: { prototype: SVGFESpecularLightingElement; new(): SVGFESpecularLightingElement; } - interface SVGFESpotLightElement extends SVGElement { readonly limitingConeAngle: SVGAnimatedNumber; readonly pointsAtX: SVGAnimatedNumber; @@ -10026,25 +9653,23 @@ interface SVGFESpotLightElement extends SVGElement { readonly y: SVGAnimatedNumber; readonly z: SVGAnimatedNumber; addEventListener(type: K, listener: (this: SVGFESpotLightElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFESpotLightElement: { prototype: SVGFESpotLightElement; new(): SVGFESpotLightElement; } - interface SVGFETileElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { readonly in1: SVGAnimatedString; addEventListener(type: K, listener: (this: SVGFETileElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFETileElement: { prototype: SVGFETileElement; new(): SVGFETileElement; } - interface SVGFETurbulenceElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { readonly baseFrequencyX: SVGAnimatedNumber; readonly baseFrequencyY: SVGAnimatedNumber; @@ -10059,7 +9684,7 @@ interface SVGFETurbulenceElement extends SVGElement, SVGFilterPrimitiveStandardA readonly SVG_TURBULENCE_TYPE_TURBULENCE: number; readonly SVG_TURBULENCE_TYPE_UNKNOWN: number; addEventListener(type: K, listener: (this: SVGFETurbulenceElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFETurbulenceElement: { @@ -10072,7 +9697,6 @@ declare var SVGFETurbulenceElement: { readonly SVG_TURBULENCE_TYPE_TURBULENCE: number; readonly SVG_TURBULENCE_TYPE_UNKNOWN: number; } - interface SVGFilterElement extends SVGElement, SVGUnitTypes, SVGURIReference { readonly filterResX: SVGAnimatedInteger; readonly filterResY: SVGAnimatedInteger; @@ -10084,38 +9708,35 @@ interface SVGFilterElement extends SVGElement, SVGUnitTypes, SVGURIReference { readonly y: SVGAnimatedLength; setFilterRes(filterResX: number, filterResY: number): void; addEventListener(type: K, listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFilterElement: { prototype: SVGFilterElement; new(): SVGFilterElement; } - interface SVGForeignObjectElement extends SVGGraphicsElement { readonly height: SVGAnimatedLength; readonly width: SVGAnimatedLength; readonly x: SVGAnimatedLength; readonly y: SVGAnimatedLength; addEventListener(type: K, listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGForeignObjectElement: { prototype: SVGForeignObjectElement; new(): SVGForeignObjectElement; } - interface SVGGElement extends SVGGraphicsElement { addEventListener(type: K, listener: (this: SVGGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGGElement: { prototype: SVGGElement; new(): SVGGElement; } - interface SVGGradientElement extends SVGElement, SVGUnitTypes, SVGURIReference { readonly gradientTransform: SVGAnimatedTransformList; readonly gradientUnits: SVGAnimatedEnumeration; @@ -10125,7 +9746,7 @@ interface SVGGradientElement extends SVGElement, SVGUnitTypes, SVGURIReference { readonly SVG_SPREADMETHOD_REPEAT: number; readonly SVG_SPREADMETHOD_UNKNOWN: number; addEventListener(type: K, listener: (this: SVGGradientElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGGradientElement: { @@ -10136,7 +9757,6 @@ declare var SVGGradientElement: { readonly SVG_SPREADMETHOD_REPEAT: number; readonly SVG_SPREADMETHOD_UNKNOWN: number; } - interface SVGGraphicsElement extends SVGElement, SVGTests { readonly farthestViewportElement: SVGElement; readonly nearestViewportElement: SVGElement; @@ -10146,14 +9766,13 @@ interface SVGGraphicsElement extends SVGElement, SVGTests { getScreenCTM(): SVGMatrix; getTransformToElement(element: SVGElement): SVGMatrix; addEventListener(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGGraphicsElement: { prototype: SVGGraphicsElement; new(): SVGGraphicsElement; } - interface SVGImageElement extends SVGGraphicsElement, SVGURIReference { readonly height: SVGAnimatedLength; readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio; @@ -10161,14 +9780,13 @@ interface SVGImageElement extends SVGGraphicsElement, SVGURIReference { readonly x: SVGAnimatedLength; readonly y: SVGAnimatedLength; addEventListener(type: K, listener: (this: SVGImageElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGImageElement: { prototype: SVGImageElement; new(): SVGImageElement; } - interface SVGLength { readonly unitType: number; value: number; @@ -10204,7 +9822,6 @@ declare var SVGLength: { readonly SVG_LENGTHTYPE_PX: number; readonly SVG_LENGTHTYPE_UNKNOWN: number; } - interface SVGLengthList { readonly numberOfItems: number; appendItem(newItem: SVGLength): SVGLength; @@ -10220,35 +9837,32 @@ declare var SVGLengthList: { prototype: SVGLengthList; new(): SVGLengthList; } - interface SVGLineElement extends SVGGraphicsElement { readonly x1: SVGAnimatedLength; readonly x2: SVGAnimatedLength; readonly y1: SVGAnimatedLength; readonly y2: SVGAnimatedLength; addEventListener(type: K, listener: (this: SVGLineElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGLineElement: { prototype: SVGLineElement; new(): SVGLineElement; } - interface SVGLinearGradientElement extends SVGGradientElement { readonly x1: SVGAnimatedLength; readonly x2: SVGAnimatedLength; readonly y1: SVGAnimatedLength; readonly y2: SVGAnimatedLength; addEventListener(type: K, listener: (this: SVGLinearGradientElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGLinearGradientElement: { prototype: SVGLinearGradientElement; new(): SVGLinearGradientElement; } - interface SVGMarkerElement extends SVGElement, SVGFitToViewBox { readonly markerHeight: SVGAnimatedLength; readonly markerUnits: SVGAnimatedEnumeration; @@ -10266,7 +9880,7 @@ interface SVGMarkerElement extends SVGElement, SVGFitToViewBox { readonly SVG_MARKER_ORIENT_AUTO: number; readonly SVG_MARKER_ORIENT_UNKNOWN: number; addEventListener(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGMarkerElement: { @@ -10279,7 +9893,6 @@ declare var SVGMarkerElement: { readonly SVG_MARKER_ORIENT_AUTO: number; readonly SVG_MARKER_ORIENT_UNKNOWN: number; } - interface SVGMaskElement extends SVGElement, SVGTests, SVGUnitTypes { readonly height: SVGAnimatedLength; readonly maskContentUnits: SVGAnimatedEnumeration; @@ -10288,14 +9901,13 @@ interface SVGMaskElement extends SVGElement, SVGTests, SVGUnitTypes { readonly x: SVGAnimatedLength; readonly y: SVGAnimatedLength; addEventListener(type: K, listener: (this: SVGMaskElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGMaskElement: { prototype: SVGMaskElement; new(): SVGMaskElement; } - interface SVGMatrix { a: number; b: number; @@ -10320,17 +9932,15 @@ declare var SVGMatrix: { prototype: SVGMatrix; new(): SVGMatrix; } - interface SVGMetadataElement extends SVGElement { addEventListener(type: K, listener: (this: SVGMetadataElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGMetadataElement: { prototype: SVGMetadataElement; new(): SVGMetadataElement; } - interface SVGNumber { value: number; } @@ -10339,7 +9949,6 @@ declare var SVGNumber: { prototype: SVGNumber; new(): SVGNumber; } - interface SVGNumberList { readonly numberOfItems: number; appendItem(newItem: SVGNumber): SVGNumber; @@ -10355,7 +9964,6 @@ declare var SVGNumberList: { prototype: SVGNumberList; new(): SVGNumberList; } - interface SVGPathElement extends SVGGraphicsElement { readonly pathSegList: SVGPathSegList; createSVGPathSegArcAbs(x: number, y: number, r1: number, r2: number, angle: number, largeArcFlag: boolean, sweepFlag: boolean): SVGPathSegArcAbs; @@ -10381,14 +9989,13 @@ interface SVGPathElement extends SVGGraphicsElement { getPointAtLength(distance: number): SVGPoint; getTotalLength(): number; addEventListener(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGPathElement: { prototype: SVGPathElement; new(): SVGPathElement; } - interface SVGPathSeg { readonly pathSegType: number; readonly pathSegTypeAsLetter: string; @@ -10438,7 +10045,6 @@ declare var SVGPathSeg: { readonly PATHSEG_MOVETO_REL: number; readonly PATHSEG_UNKNOWN: number; } - interface SVGPathSegArcAbs extends SVGPathSeg { angle: number; largeArcFlag: boolean; @@ -10453,7 +10059,6 @@ declare var SVGPathSegArcAbs: { prototype: SVGPathSegArcAbs; new(): SVGPathSegArcAbs; } - interface SVGPathSegArcRel extends SVGPathSeg { angle: number; largeArcFlag: boolean; @@ -10468,7 +10073,6 @@ declare var SVGPathSegArcRel: { prototype: SVGPathSegArcRel; new(): SVGPathSegArcRel; } - interface SVGPathSegClosePath extends SVGPathSeg { } @@ -10476,7 +10080,6 @@ declare var SVGPathSegClosePath: { prototype: SVGPathSegClosePath; new(): SVGPathSegClosePath; } - interface SVGPathSegCurvetoCubicAbs extends SVGPathSeg { x: number; x1: number; @@ -10490,7 +10093,6 @@ declare var SVGPathSegCurvetoCubicAbs: { prototype: SVGPathSegCurvetoCubicAbs; new(): SVGPathSegCurvetoCubicAbs; } - interface SVGPathSegCurvetoCubicRel extends SVGPathSeg { x: number; x1: number; @@ -10504,7 +10106,6 @@ declare var SVGPathSegCurvetoCubicRel: { prototype: SVGPathSegCurvetoCubicRel; new(): SVGPathSegCurvetoCubicRel; } - interface SVGPathSegCurvetoCubicSmoothAbs extends SVGPathSeg { x: number; x2: number; @@ -10516,7 +10117,6 @@ declare var SVGPathSegCurvetoCubicSmoothAbs: { prototype: SVGPathSegCurvetoCubicSmoothAbs; new(): SVGPathSegCurvetoCubicSmoothAbs; } - interface SVGPathSegCurvetoCubicSmoothRel extends SVGPathSeg { x: number; x2: number; @@ -10528,7 +10128,6 @@ declare var SVGPathSegCurvetoCubicSmoothRel: { prototype: SVGPathSegCurvetoCubicSmoothRel; new(): SVGPathSegCurvetoCubicSmoothRel; } - interface SVGPathSegCurvetoQuadraticAbs extends SVGPathSeg { x: number; x1: number; @@ -10540,7 +10139,6 @@ declare var SVGPathSegCurvetoQuadraticAbs: { prototype: SVGPathSegCurvetoQuadraticAbs; new(): SVGPathSegCurvetoQuadraticAbs; } - interface SVGPathSegCurvetoQuadraticRel extends SVGPathSeg { x: number; x1: number; @@ -10552,7 +10150,6 @@ declare var SVGPathSegCurvetoQuadraticRel: { prototype: SVGPathSegCurvetoQuadraticRel; new(): SVGPathSegCurvetoQuadraticRel; } - interface SVGPathSegCurvetoQuadraticSmoothAbs extends SVGPathSeg { x: number; y: number; @@ -10562,7 +10159,6 @@ declare var SVGPathSegCurvetoQuadraticSmoothAbs: { prototype: SVGPathSegCurvetoQuadraticSmoothAbs; new(): SVGPathSegCurvetoQuadraticSmoothAbs; } - interface SVGPathSegCurvetoQuadraticSmoothRel extends SVGPathSeg { x: number; y: number; @@ -10572,7 +10168,6 @@ declare var SVGPathSegCurvetoQuadraticSmoothRel: { prototype: SVGPathSegCurvetoQuadraticSmoothRel; new(): SVGPathSegCurvetoQuadraticSmoothRel; } - interface SVGPathSegLinetoAbs extends SVGPathSeg { x: number; y: number; @@ -10582,7 +10177,6 @@ declare var SVGPathSegLinetoAbs: { prototype: SVGPathSegLinetoAbs; new(): SVGPathSegLinetoAbs; } - interface SVGPathSegLinetoHorizontalAbs extends SVGPathSeg { x: number; } @@ -10591,7 +10185,6 @@ declare var SVGPathSegLinetoHorizontalAbs: { prototype: SVGPathSegLinetoHorizontalAbs; new(): SVGPathSegLinetoHorizontalAbs; } - interface SVGPathSegLinetoHorizontalRel extends SVGPathSeg { x: number; } @@ -10600,7 +10193,6 @@ declare var SVGPathSegLinetoHorizontalRel: { prototype: SVGPathSegLinetoHorizontalRel; new(): SVGPathSegLinetoHorizontalRel; } - interface SVGPathSegLinetoRel extends SVGPathSeg { x: number; y: number; @@ -10610,7 +10202,6 @@ declare var SVGPathSegLinetoRel: { prototype: SVGPathSegLinetoRel; new(): SVGPathSegLinetoRel; } - interface SVGPathSegLinetoVerticalAbs extends SVGPathSeg { y: number; } @@ -10619,7 +10210,6 @@ declare var SVGPathSegLinetoVerticalAbs: { prototype: SVGPathSegLinetoVerticalAbs; new(): SVGPathSegLinetoVerticalAbs; } - interface SVGPathSegLinetoVerticalRel extends SVGPathSeg { y: number; } @@ -10628,7 +10218,6 @@ declare var SVGPathSegLinetoVerticalRel: { prototype: SVGPathSegLinetoVerticalRel; new(): SVGPathSegLinetoVerticalRel; } - interface SVGPathSegList { readonly numberOfItems: number; appendItem(newItem: SVGPathSeg): SVGPathSeg; @@ -10644,7 +10233,6 @@ declare var SVGPathSegList: { prototype: SVGPathSegList; new(): SVGPathSegList; } - interface SVGPathSegMovetoAbs extends SVGPathSeg { x: number; y: number; @@ -10654,7 +10242,6 @@ declare var SVGPathSegMovetoAbs: { prototype: SVGPathSegMovetoAbs; new(): SVGPathSegMovetoAbs; } - interface SVGPathSegMovetoRel extends SVGPathSeg { x: number; y: number; @@ -10664,7 +10251,6 @@ declare var SVGPathSegMovetoRel: { prototype: SVGPathSegMovetoRel; new(): SVGPathSegMovetoRel; } - interface SVGPatternElement extends SVGElement, SVGTests, SVGUnitTypes, SVGFitToViewBox, SVGURIReference { readonly height: SVGAnimatedLength; readonly patternContentUnits: SVGAnimatedEnumeration; @@ -10674,14 +10260,13 @@ interface SVGPatternElement extends SVGElement, SVGTests, SVGUnitTypes, SVGFitTo readonly x: SVGAnimatedLength; readonly y: SVGAnimatedLength; addEventListener(type: K, listener: (this: SVGPatternElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGPatternElement: { prototype: SVGPatternElement; new(): SVGPatternElement; } - interface SVGPoint { x: number; y: number; @@ -10692,7 +10277,6 @@ declare var SVGPoint: { prototype: SVGPoint; new(): SVGPoint; } - interface SVGPointList { readonly numberOfItems: number; appendItem(newItem: SVGPoint): SVGPoint; @@ -10708,27 +10292,24 @@ declare var SVGPointList: { prototype: SVGPointList; new(): SVGPointList; } - interface SVGPolygonElement extends SVGGraphicsElement, SVGAnimatedPoints { addEventListener(type: K, listener: (this: SVGPolygonElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGPolygonElement: { prototype: SVGPolygonElement; new(): SVGPolygonElement; } - interface SVGPolylineElement extends SVGGraphicsElement, SVGAnimatedPoints { addEventListener(type: K, listener: (this: SVGPolylineElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGPolylineElement: { prototype: SVGPolylineElement; new(): SVGPolylineElement; } - interface SVGPreserveAspectRatio { align: number; meetOrSlice: number; @@ -10766,7 +10347,6 @@ declare var SVGPreserveAspectRatio: { readonly SVG_PRESERVEASPECTRATIO_XMINYMID: number; readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: number; } - interface SVGRadialGradientElement extends SVGGradientElement { readonly cx: SVGAnimatedLength; readonly cy: SVGAnimatedLength; @@ -10774,14 +10354,13 @@ interface SVGRadialGradientElement extends SVGGradientElement { readonly fy: SVGAnimatedLength; readonly r: SVGAnimatedLength; addEventListener(type: K, listener: (this: SVGRadialGradientElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGRadialGradientElement: { prototype: SVGRadialGradientElement; new(): SVGRadialGradientElement; } - interface SVGRect { height: number; width: number; @@ -10793,7 +10372,6 @@ declare var SVGRect: { prototype: SVGRect; new(): SVGRect; } - interface SVGRectElement extends SVGGraphicsElement { readonly height: SVGAnimatedLength; readonly rx: SVGAnimatedLength; @@ -10802,7 +10380,7 @@ interface SVGRectElement extends SVGGraphicsElement { readonly x: SVGAnimatedLength; readonly y: SVGAnimatedLength; addEventListener(type: K, listener: (this: SVGRectElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGRectElement: { @@ -10818,19 +10396,18 @@ interface SVGSVGElementEventMap extends SVGElementEventMap { "SVGUnload": Event; "SVGZoom": SVGZoomEvent; } - interface SVGSVGElement extends SVGGraphicsElement, DocumentEvent, SVGFitToViewBox, SVGZoomAndPan { contentScriptType: string; contentStyleType: string; currentScale: number; readonly currentTranslate: SVGPoint; readonly height: SVGAnimatedLength; - onabort: (this: SVGSVGElement, ev: Event) => any; - onerror: (this: SVGSVGElement, ev: Event) => any; - onresize: (this: SVGSVGElement, ev: UIEvent) => any; - onscroll: (this: SVGSVGElement, ev: UIEvent) => any; - onunload: (this: SVGSVGElement, ev: Event) => any; - onzoom: (this: SVGSVGElement, ev: SVGZoomEvent) => any; + onabort: (this: SVGSVGElement, ev: Event) => any; + onerror: (this: SVGSVGElement, ev: Event) => any; + onresize: (this: SVGSVGElement, ev: UIEvent) => any; + onscroll: (this: SVGSVGElement, ev: UIEvent) => any; + onunload: (this: SVGSVGElement, ev: Event) => any; + onzoom: (this: SVGSVGElement, ev: SVGZoomEvent) => any; readonly pixelUnitToMillimeterX: number; readonly pixelUnitToMillimeterY: number; readonly screenPixelToMillimeterX: number; @@ -10863,36 +10440,33 @@ interface SVGSVGElement extends SVGGraphicsElement, DocumentEvent, SVGFitToViewB unsuspendRedraw(suspendHandleID: number): void; unsuspendRedrawAll(): void; addEventListener(type: K, listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGSVGElement: { prototype: SVGSVGElement; new(): SVGSVGElement; } - interface SVGScriptElement extends SVGElement, SVGURIReference { type: string; addEventListener(type: K, listener: (this: SVGScriptElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGScriptElement: { prototype: SVGScriptElement; new(): SVGScriptElement; } - interface SVGStopElement extends SVGElement { readonly offset: SVGAnimatedNumber; addEventListener(type: K, listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGStopElement: { prototype: SVGStopElement; new(): SVGStopElement; } - interface SVGStringList { readonly numberOfItems: number; appendItem(newItem: string): string; @@ -10908,51 +10482,46 @@ declare var SVGStringList: { prototype: SVGStringList; new(): SVGStringList; } - interface SVGStyleElement extends SVGElement { disabled: boolean; media: string; title: string; type: string; addEventListener(type: K, listener: (this: SVGStyleElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGStyleElement: { prototype: SVGStyleElement; new(): SVGStyleElement; } - interface SVGSwitchElement extends SVGGraphicsElement { addEventListener(type: K, listener: (this: SVGSwitchElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGSwitchElement: { prototype: SVGSwitchElement; new(): SVGSwitchElement; } - interface SVGSymbolElement extends SVGElement, SVGFitToViewBox { addEventListener(type: K, listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGSymbolElement: { prototype: SVGSymbolElement; new(): SVGSymbolElement; } - interface SVGTSpanElement extends SVGTextPositioningElement { addEventListener(type: K, listener: (this: SVGTSpanElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGTSpanElement: { prototype: SVGTSpanElement; new(): SVGTSpanElement; } - interface SVGTextContentElement extends SVGGraphicsElement { readonly lengthAdjust: SVGAnimatedEnumeration; readonly textLength: SVGAnimatedLength; @@ -10969,7 +10538,7 @@ interface SVGTextContentElement extends SVGGraphicsElement { readonly LENGTHADJUST_SPACINGANDGLYPHS: number; readonly LENGTHADJUST_UNKNOWN: number; addEventListener(type: K, listener: (this: SVGTextContentElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGTextContentElement: { @@ -10979,17 +10548,15 @@ declare var SVGTextContentElement: { readonly LENGTHADJUST_SPACINGANDGLYPHS: number; readonly LENGTHADJUST_UNKNOWN: number; } - interface SVGTextElement extends SVGTextPositioningElement { addEventListener(type: K, listener: (this: SVGTextElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGTextElement: { prototype: SVGTextElement; new(): SVGTextElement; } - interface SVGTextPathElement extends SVGTextContentElement, SVGURIReference { readonly method: SVGAnimatedEnumeration; readonly spacing: SVGAnimatedEnumeration; @@ -11001,7 +10568,7 @@ interface SVGTextPathElement extends SVGTextContentElement, SVGURIReference { readonly TEXTPATH_SPACINGTYPE_EXACT: number; readonly TEXTPATH_SPACINGTYPE_UNKNOWN: number; addEventListener(type: K, listener: (this: SVGTextPathElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGTextPathElement: { @@ -11014,7 +10581,6 @@ declare var SVGTextPathElement: { readonly TEXTPATH_SPACINGTYPE_EXACT: number; readonly TEXTPATH_SPACINGTYPE_UNKNOWN: number; } - interface SVGTextPositioningElement extends SVGTextContentElement { readonly dx: SVGAnimatedLengthList; readonly dy: SVGAnimatedLengthList; @@ -11022,24 +10588,22 @@ interface SVGTextPositioningElement extends SVGTextContentElement { readonly x: SVGAnimatedLengthList; readonly y: SVGAnimatedLengthList; addEventListener(type: K, listener: (this: SVGTextPositioningElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGTextPositioningElement: { prototype: SVGTextPositioningElement; new(): SVGTextPositioningElement; } - interface SVGTitleElement extends SVGElement { addEventListener(type: K, listener: (this: SVGTitleElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGTitleElement: { prototype: SVGTitleElement; new(): SVGTitleElement; } - interface SVGTransform { readonly angle: number; readonly matrix: SVGMatrix; @@ -11070,7 +10634,6 @@ declare var SVGTransform: { readonly SVG_TRANSFORM_TRANSLATE: number; readonly SVG_TRANSFORM_UNKNOWN: number; } - interface SVGTransformList { readonly numberOfItems: number; appendItem(newItem: SVGTransform): SVGTransform; @@ -11088,14 +10651,12 @@ declare var SVGTransformList: { prototype: SVGTransformList; new(): SVGTransformList; } - interface SVGUnitTypes { readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: number; readonly SVG_UNIT_TYPE_UNKNOWN: number; readonly SVG_UNIT_TYPE_USERSPACEONUSE: number; } declare var SVGUnitTypes: SVGUnitTypes; - interface SVGUseElement extends SVGGraphicsElement, SVGURIReference { readonly animatedInstanceRoot: SVGElementInstance; readonly height: SVGAnimatedLength; @@ -11104,25 +10665,23 @@ interface SVGUseElement extends SVGGraphicsElement, SVGURIReference { readonly x: SVGAnimatedLength; readonly y: SVGAnimatedLength; addEventListener(type: K, listener: (this: SVGUseElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGUseElement: { prototype: SVGUseElement; new(): SVGUseElement; } - interface SVGViewElement extends SVGElement, SVGZoomAndPan, SVGFitToViewBox { readonly viewTarget: SVGStringList; addEventListener(type: K, listener: (this: SVGViewElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGViewElement: { prototype: SVGViewElement; new(): SVGViewElement; } - interface SVGZoomAndPan { readonly zoomAndPan: number; } @@ -11132,8 +10691,7 @@ declare var SVGZoomAndPan: { readonly SVG_ZOOMANDPAN_MAGNIFY: number; readonly SVG_ZOOMANDPAN_UNKNOWN: number; } - -interface SVGZoomEvent extends UIEvent { +interface SVGZoomEvent extends UIEvent { readonly newScale: number; readonly newTranslate: SVGPoint; readonly previousScale: number; @@ -11145,7 +10703,6 @@ declare var SVGZoomEvent: { prototype: SVGZoomEvent; new(): SVGZoomEvent; } - interface ScopedCredential { readonly id: ArrayBuffer; readonly type: string; @@ -11155,7 +10712,6 @@ declare var ScopedCredential: { prototype: ScopedCredential; new(): ScopedCredential; } - interface ScopedCredentialInfo { readonly credential: ScopedCredential; readonly publicKey: CryptoKey; @@ -11169,7 +10725,6 @@ declare var ScopedCredentialInfo: { interface ScreenEventMap { "MSOrientationChange": Event; } - interface Screen extends EventTarget { readonly availHeight: number; readonly availWidth: number; @@ -11182,7 +10737,7 @@ interface Screen extends EventTarget { readonly logicalXDPI: number; readonly logicalYDPI: number; readonly msOrientation: string; - onmsorientationchange: (this: Screen, ev: Event) => any; + onmsorientationchange: (this: Screen, ev: Event) => any; readonly pixelDepth: number; readonly systemXDPI: number; readonly systemYDPI: number; @@ -11190,15 +10745,14 @@ interface Screen extends EventTarget { msLockOrientation(orientations: string | string[]): boolean; msUnlockOrientation(): void; addEventListener(type: K, listener: (this: Screen, ev: ScreenEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var Screen: { prototype: Screen; new(): Screen; } - -interface ScriptNotifyEvent extends Event { +interface ScriptNotifyEvent extends Event { readonly callingUri: string; readonly value: string; } @@ -11211,19 +10765,17 @@ declare var ScriptNotifyEvent: { interface ScriptProcessorNodeEventMap { "audioprocess": AudioProcessingEvent; } - interface ScriptProcessorNode extends AudioNode { readonly bufferSize: number; - onaudioprocess: (this: ScriptProcessorNode, ev: AudioProcessingEvent) => any; + onaudioprocess: (this: ScriptProcessorNode, ev: AudioProcessingEvent) => any; addEventListener(type: K, listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var ScriptProcessorNode: { prototype: ScriptProcessorNode; new(): ScriptProcessorNode; } - interface Selection { readonly anchorNode: Node; readonly anchorOffset: number; @@ -11261,14 +10813,13 @@ declare var Selection: { interface ServiceWorkerEventMap extends AbstractWorkerEventMap { "statechange": Event; } - -interface ServiceWorker extends EventTarget, AbstractWorker { - onstatechange: (this: ServiceWorker, ev: Event) => any; +interface ServiceWorker extends EventTarget, AbstractWorker { + onstatechange: (this: ServiceWorker, ev: Event) => any; readonly scriptURL: USVString; readonly state: string; postMessage(message: any, transfer?: any[]): void; addEventListener(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var ServiceWorker: { @@ -11280,25 +10831,23 @@ interface ServiceWorkerContainerEventMap { "controllerchange": Event; "message": ServiceWorkerMessageEvent; } - interface ServiceWorkerContainer extends EventTarget { readonly controller: ServiceWorker | null; - oncontrollerchange: (this: ServiceWorkerContainer, ev: Event) => any; - onmessage: (this: ServiceWorkerContainer, ev: ServiceWorkerMessageEvent) => any; + oncontrollerchange: (this: ServiceWorkerContainer, ev: Event) => any; + onmessage: (this: ServiceWorkerContainer, ev: ServiceWorkerMessageEvent) => any; readonly ready: Promise; getRegistration(clientURL?: USVString): Promise; getRegistrations(): any; register(scriptURL: USVString, options?: RegistrationOptions): Promise; addEventListener(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var ServiceWorkerContainer: { prototype: ServiceWorkerContainer; new(): ServiceWorkerContainer; } - -interface ServiceWorkerMessageEvent extends Event { +interface ServiceWorkerMessageEvent extends Event { readonly data: any; readonly lastEventId: string; readonly origin: string; @@ -11314,11 +10863,10 @@ declare var ServiceWorkerMessageEvent: { interface ServiceWorkerRegistrationEventMap { "updatefound": Event; } - interface ServiceWorkerRegistration extends EventTarget { readonly active: ServiceWorker | null; readonly installing: ServiceWorker | null; - onupdatefound: (this: ServiceWorkerRegistration, ev: Event) => any; + onupdatefound: (this: ServiceWorkerRegistration, ev: Event) => any; readonly pushManager: PushManager; readonly scope: USVString; readonly sync: SyncManager; @@ -11328,14 +10876,13 @@ interface ServiceWorkerRegistration extends EventTarget { unregister(): Promise; update(): Promise; addEventListener(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var ServiceWorkerRegistration: { prototype: ServiceWorkerRegistration; new(): ServiceWorkerRegistration; } - interface SourceBuffer extends EventTarget { appendWindowEnd: number; appendWindowStart: number; @@ -11355,7 +10902,6 @@ declare var SourceBuffer: { prototype: SourceBuffer; new(): SourceBuffer; } - interface SourceBufferList extends EventTarget { readonly length: number; item(index: number): SourceBuffer; @@ -11370,9 +10916,8 @@ declare var SourceBufferList: { interface SpeechSynthesisEventMap { "voiceschanged": Event; } - interface SpeechSynthesis extends EventTarget { - onvoiceschanged: (this: SpeechSynthesis, ev: Event) => any; + onvoiceschanged: (this: SpeechSynthesis, ev: Event) => any; readonly paused: boolean; readonly pending: boolean; readonly speaking: boolean; @@ -11382,15 +10927,14 @@ interface SpeechSynthesis extends EventTarget { resume(): void; speak(utterance: SpeechSynthesisUtterance): void; addEventListener(type: K, listener: (this: SpeechSynthesis, ev: SpeechSynthesisEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SpeechSynthesis: { prototype: SpeechSynthesis; new(): SpeechSynthesis; } - -interface SpeechSynthesisEvent extends Event { +interface SpeechSynthesisEvent extends Event { readonly charIndex: number; readonly elapsedTime: number; readonly name: string; @@ -11411,30 +10955,28 @@ interface SpeechSynthesisUtteranceEventMap { "resume": Event; "start": Event; } - interface SpeechSynthesisUtterance extends EventTarget { lang: string; - onboundary: (this: SpeechSynthesisUtterance, ev: Event) => any; - onend: (this: SpeechSynthesisUtterance, ev: Event) => any; - onerror: (this: SpeechSynthesisUtterance, ev: Event) => any; - onmark: (this: SpeechSynthesisUtterance, ev: Event) => any; - onpause: (this: SpeechSynthesisUtterance, ev: Event) => any; - onresume: (this: SpeechSynthesisUtterance, ev: Event) => any; - onstart: (this: SpeechSynthesisUtterance, ev: Event) => any; + onboundary: (this: SpeechSynthesisUtterance, ev: Event) => any; + onend: (this: SpeechSynthesisUtterance, ev: Event) => any; + onerror: (this: SpeechSynthesisUtterance, ev: Event) => any; + onmark: (this: SpeechSynthesisUtterance, ev: Event) => any; + onpause: (this: SpeechSynthesisUtterance, ev: Event) => any; + onresume: (this: SpeechSynthesisUtterance, ev: Event) => any; + onstart: (this: SpeechSynthesisUtterance, ev: Event) => any; pitch: number; rate: number; text: string; voice: SpeechSynthesisVoice; volume: number; addEventListener(type: K, listener: (this: SpeechSynthesisUtterance, ev: SpeechSynthesisUtteranceEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SpeechSynthesisUtterance: { prototype: SpeechSynthesisUtterance; new(text?: string): SpeechSynthesisUtterance; } - interface SpeechSynthesisVoice { readonly default: boolean; readonly lang: string; @@ -11447,7 +10989,6 @@ declare var SpeechSynthesisVoice: { prototype: SpeechSynthesisVoice; new(): SpeechSynthesisVoice; } - interface StereoPannerNode extends AudioNode { readonly pan: AudioParam; } @@ -11456,7 +10997,6 @@ declare var StereoPannerNode: { prototype: StereoPannerNode; new(): StereoPannerNode; } - interface Storage { readonly length: number; clear(): void; @@ -11472,8 +11012,7 @@ declare var Storage: { prototype: Storage; new(): Storage; } - -interface StorageEvent extends Event { +interface StorageEvent extends Event { readonly url: string; key?: string; oldValue?: string; @@ -11485,7 +11024,6 @@ declare var StorageEvent: { prototype: StorageEvent; new (type: string, eventInitDict?: StorageEventInit): StorageEvent; } - interface StyleMedia { readonly type: string; matchMedium(mediaquery: string): boolean; @@ -11495,7 +11033,6 @@ declare var StyleMedia: { prototype: StyleMedia; new(): StyleMedia; } - interface StyleSheet { disabled: boolean; readonly href: string; @@ -11510,7 +11047,6 @@ declare var StyleSheet: { prototype: StyleSheet; new(): StyleSheet; } - interface StyleSheetList { readonly length: number; item(index?: number): StyleSheet; @@ -11521,7 +11057,6 @@ declare var StyleSheetList: { prototype: StyleSheetList; new(): StyleSheetList; } - interface StyleSheetPageList { readonly length: number; item(index: number): CSSPageRule; @@ -11532,7 +11067,6 @@ declare var StyleSheetPageList: { prototype: StyleSheetPageList; new(): StyleSheetPageList; } - interface SubtleCrypto { decrypt(algorithm: string | RsaOaepParams | AesCtrParams | AesCbcParams | AesCmacParams | AesGcmParams | AesCfbParams, key: CryptoKey, data: BufferSource): PromiseLike; deriveBits(algorithm: string | EcdhKeyDeriveParams | DhKeyDeriveParams | ConcatParams | HkdfCtrParams | Pbkdf2Params, baseKey: CryptoKey, length: number): PromiseLike; @@ -11558,7 +11092,6 @@ declare var SubtleCrypto: { prototype: SubtleCrypto; new(): SubtleCrypto; } - interface SyncManager { getTags(): any; register(tag: string): Promise; @@ -11568,7 +11101,6 @@ declare var SyncManager: { prototype: SyncManager; new(): SyncManager; } - interface Text extends CharacterData { readonly wholeText: string; readonly assignedSlot: HTMLSlotElement | null; @@ -11579,8 +11111,7 @@ declare var Text: { prototype: Text; new(): Text; } - -interface TextEvent extends UIEvent { +interface TextEvent extends UIEvent { readonly data: string; readonly inputMethod: number; readonly locale: string; @@ -11611,7 +11142,6 @@ declare var TextEvent: { readonly DOM_INPUT_METHOD_UNKNOWN: number; readonly DOM_INPUT_METHOD_VOICE: number; } - interface TextMetrics { readonly width: number; } @@ -11626,7 +11156,6 @@ interface TextTrackEventMap { "error": Event; "load": Event; } - interface TextTrack extends EventTarget { readonly activeCues: TextTrackCueList; readonly cues: TextTrackCueList; @@ -11635,9 +11164,9 @@ interface TextTrack extends EventTarget { readonly label: string; readonly language: string; mode: any; - oncuechange: (this: TextTrack, ev: Event) => any; - onerror: (this: TextTrack, ev: Event) => any; - onload: (this: TextTrack, ev: Event) => any; + oncuechange: (this: TextTrack, ev: Event) => any; + onerror: (this: TextTrack, ev: Event) => any; + onload: (this: TextTrack, ev: Event) => any; readonly readyState: number; addCue(cue: TextTrackCue): void; removeCue(cue: TextTrackCue): void; @@ -11649,7 +11178,7 @@ interface TextTrack extends EventTarget { readonly NONE: number; readonly SHOWING: number; addEventListener(type: K, listener: (this: TextTrack, ev: TextTrackEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var TextTrack: { @@ -11668,26 +11197,24 @@ interface TextTrackCueEventMap { "enter": Event; "exit": Event; } - interface TextTrackCue extends EventTarget { endTime: number; id: string; - onenter: (this: TextTrackCue, ev: Event) => any; - onexit: (this: TextTrackCue, ev: Event) => any; + onenter: (this: TextTrackCue, ev: Event) => any; + onexit: (this: TextTrackCue, ev: Event) => any; pauseOnExit: boolean; startTime: number; text: string; readonly track: TextTrack; getCueAsHTML(): DocumentFragment; addEventListener(type: K, listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var TextTrackCue: { prototype: TextTrackCue; new(startTime: number, endTime: number, text: string): TextTrackCue; } - interface TextTrackCueList { readonly length: number; getCueById(id: string): TextTrackCue; @@ -11703,13 +11230,12 @@ declare var TextTrackCueList: { interface TextTrackListEventMap { "addtrack": TrackEvent; } - interface TextTrackList extends EventTarget { readonly length: number; - onaddtrack: ((this: TextTrackList, ev: TrackEvent) => any) | null; + onaddtrack: ((this: TextTrackList, ev: TrackEvent) => any) | null; item(index: number): TextTrack; addEventListener(type: K, listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; [index: number]: TextTrack; } @@ -11717,7 +11243,6 @@ declare var TextTrackList: { prototype: TextTrackList; new(): TextTrackList; } - interface TimeRanges { readonly length: number; end(index: number): number; @@ -11728,7 +11253,6 @@ declare var TimeRanges: { prototype: TimeRanges; new(): TimeRanges; } - interface Touch { readonly clientX: number; readonly clientY: number; @@ -11744,8 +11268,7 @@ declare var Touch: { prototype: Touch; new(): Touch; } - -interface TouchEvent extends UIEvent { +interface TouchEvent extends UIEvent { readonly altKey: boolean; readonly changedTouches: TouchList; readonly charCode: number; @@ -11762,7 +11285,6 @@ declare var TouchEvent: { prototype: TouchEvent; new(): TouchEvent; } - interface TouchList { readonly length: number; item(index: number): Touch | null; @@ -11773,8 +11295,7 @@ declare var TouchList: { prototype: TouchList; new(): TouchList; } - -interface TrackEvent extends Event { +interface TrackEvent extends Event { readonly track: VideoTrack | AudioTrack | TextTrack | null; } @@ -11782,8 +11303,7 @@ declare var TrackEvent: { prototype: TrackEvent; new(typeArg: string, eventInitDict?: TrackEventInit): TrackEvent; } - -interface TransitionEvent extends Event { +interface TransitionEvent extends Event { readonly elapsedTime: number; readonly propertyName: string; initTransitionEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, propertyNameArg: string, elapsedTimeArg: number): void; @@ -11793,7 +11313,6 @@ declare var TransitionEvent: { prototype: TransitionEvent; new(typeArg: string, eventInitDict?: TransitionEventInit): TransitionEvent; } - interface TreeWalker { currentNode: Node; readonly expandEntityReferences: boolean; @@ -11813,8 +11332,7 @@ declare var TreeWalker: { prototype: TreeWalker; new(): TreeWalker; } - -interface UIEvent extends Event { +interface UIEvent extends Event { readonly detail: number; readonly view: Window; initUIEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number): void; @@ -11824,7 +11342,6 @@ declare var UIEvent: { prototype: UIEvent; new(typeArg: string, eventInitDict?: UIEventInit): UIEvent; } - interface URL { hash: string; host: string; @@ -11847,8 +11364,7 @@ declare var URL: { createObjectURL(object: any, options?: ObjectURLOptions): string; revokeObjectURL(url: string): void; } - -interface UnviewableContentIdentifiedEvent extends NavigationEventWithReferrer { +interface UnviewableContentIdentifiedEvent extends NavigationEventWithReferrer { readonly mediaType: string; } @@ -11856,7 +11372,6 @@ declare var UnviewableContentIdentifiedEvent: { prototype: UnviewableContentIdentifiedEvent; new(): UnviewableContentIdentifiedEvent; } - interface ValidityState { readonly badInput: boolean; readonly customError: boolean; @@ -11874,7 +11389,6 @@ declare var ValidityState: { prototype: ValidityState; new(): ValidityState; } - interface VideoPlaybackQuality { readonly corruptedVideoFrames: number; readonly creationTime: number; @@ -11887,7 +11401,6 @@ declare var VideoPlaybackQuality: { prototype: VideoPlaybackQuality; new(): VideoPlaybackQuality; } - interface VideoTrack { readonly id: string; kind: string; @@ -11907,17 +11420,16 @@ interface VideoTrackListEventMap { "change": Event; "removetrack": TrackEvent; } - interface VideoTrackList extends EventTarget { readonly length: number; - onaddtrack: (this: VideoTrackList, ev: TrackEvent) => any; - onchange: (this: VideoTrackList, ev: Event) => any; - onremovetrack: (this: VideoTrackList, ev: TrackEvent) => any; + onaddtrack: (this: VideoTrackList, ev: TrackEvent) => any; + onchange: (this: VideoTrackList, ev: Event) => any; + onremovetrack: (this: VideoTrackList, ev: TrackEvent) => any; readonly selectedIndex: number; getTrackById(id: string): VideoTrack | null; item(index: number): VideoTrack; addEventListener(type: K, listener: (this: VideoTrackList, ev: VideoTrackListEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; [index: number]: VideoTrack; } @@ -11925,7 +11437,6 @@ declare var VideoTrackList: { prototype: VideoTrackList; new(): VideoTrackList; } - interface WEBGL_compressed_texture_s3tc { readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: number; readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: number; @@ -11941,7 +11452,6 @@ declare var WEBGL_compressed_texture_s3tc: { readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: number; readonly COMPRESSED_RGB_S3TC_DXT1_EXT: number; } - interface WEBGL_debug_renderer_info { readonly UNMASKED_RENDERER_WEBGL: number; readonly UNMASKED_VENDOR_WEBGL: number; @@ -11953,7 +11463,6 @@ declare var WEBGL_debug_renderer_info: { readonly UNMASKED_RENDERER_WEBGL: number; readonly UNMASKED_VENDOR_WEBGL: number; } - interface WEBGL_depth_texture { readonly UNSIGNED_INT_24_8_WEBGL: number; } @@ -11963,7 +11472,6 @@ declare var WEBGL_depth_texture: { new(): WEBGL_depth_texture; readonly UNSIGNED_INT_24_8_WEBGL: number; } - interface WaveShaperNode extends AudioNode { curve: Float32Array | null; oversample: string; @@ -11973,7 +11481,6 @@ declare var WaveShaperNode: { prototype: WaveShaperNode; new(): WaveShaperNode; } - interface WebAuthentication { getAssertion(assertionChallenge: any, options?: AssertionOptions): Promise; makeCredential(accountInformation: Account, cryptoParameters: ScopedCredentialParameters[], attestationChallenge: any, options?: ScopedCredentialOptions): Promise; @@ -11983,7 +11490,6 @@ declare var WebAuthentication: { prototype: WebAuthentication; new(): WebAuthentication; } - interface WebAuthnAssertion { readonly authenticatorData: ArrayBuffer; readonly clientData: ArrayBuffer; @@ -11995,7 +11501,6 @@ declare var WebAuthnAssertion: { prototype: WebAuthnAssertion; new(): WebAuthnAssertion; } - interface WebGLActiveInfo { readonly name: string; readonly size: number; @@ -12006,7 +11511,6 @@ declare var WebGLActiveInfo: { prototype: WebGLActiveInfo; new(): WebGLActiveInfo; } - interface WebGLBuffer extends WebGLObject { } @@ -12014,8 +11518,7 @@ declare var WebGLBuffer: { prototype: WebGLBuffer; new(): WebGLBuffer; } - -interface WebGLContextEvent extends Event { +interface WebGLContextEvent extends Event { readonly statusMessage: string; } @@ -12023,7 +11526,6 @@ declare var WebGLContextEvent: { prototype: WebGLContextEvent; new(typeArg: string, eventInitDict?: WebGLContextEventInit): WebGLContextEvent; } - interface WebGLFramebuffer extends WebGLObject { } @@ -12031,7 +11533,6 @@ declare var WebGLFramebuffer: { prototype: WebGLFramebuffer; new(): WebGLFramebuffer; } - interface WebGLObject { } @@ -12039,7 +11540,6 @@ declare var WebGLObject: { prototype: WebGLObject; new(): WebGLObject; } - interface WebGLProgram extends WebGLObject { } @@ -12047,7 +11547,6 @@ declare var WebGLProgram: { prototype: WebGLProgram; new(): WebGLProgram; } - interface WebGLRenderbuffer extends WebGLObject { } @@ -12055,7 +11554,6 @@ declare var WebGLRenderbuffer: { prototype: WebGLRenderbuffer; new(): WebGLRenderbuffer; } - interface WebGLRenderingContext { readonly canvas: HTMLCanvasElement; readonly drawingBufferHeight: number; @@ -12798,7 +12296,6 @@ declare var WebGLRenderingContext: { readonly VIEWPORT: number; readonly ZERO: number; } - interface WebGLShader extends WebGLObject { } @@ -12806,7 +12303,6 @@ declare var WebGLShader: { prototype: WebGLShader; new(): WebGLShader; } - interface WebGLShaderPrecisionFormat { readonly precision: number; readonly rangeMax: number; @@ -12817,7 +12313,6 @@ declare var WebGLShaderPrecisionFormat: { prototype: WebGLShaderPrecisionFormat; new(): WebGLShaderPrecisionFormat; } - interface WebGLTexture extends WebGLObject { } @@ -12825,7 +12320,6 @@ declare var WebGLTexture: { prototype: WebGLTexture; new(): WebGLTexture; } - interface WebGLUniformLocation { } @@ -12833,7 +12327,6 @@ declare var WebGLUniformLocation: { prototype: WebGLUniformLocation; new(): WebGLUniformLocation; } - interface WebKitCSSMatrix { a: number; b: number; @@ -12873,7 +12366,6 @@ declare var WebKitCSSMatrix: { prototype: WebKitCSSMatrix; new(text?: string): WebKitCSSMatrix; } - interface WebKitDirectoryEntry extends WebKitEntry { createReader(): WebKitDirectoryReader; } @@ -12882,7 +12374,6 @@ declare var WebKitDirectoryEntry: { prototype: WebKitDirectoryEntry; new(): WebKitDirectoryEntry; } - interface WebKitDirectoryReader { readEntries(successCallback: WebKitEntriesCallback, errorCallback?: WebKitErrorCallback): void; } @@ -12891,7 +12382,6 @@ declare var WebKitDirectoryReader: { prototype: WebKitDirectoryReader; new(): WebKitDirectoryReader; } - interface WebKitEntry { readonly filesystem: WebKitFileSystem; readonly fullPath: string; @@ -12904,7 +12394,6 @@ declare var WebKitEntry: { prototype: WebKitEntry; new(): WebKitEntry; } - interface WebKitFileEntry extends WebKitEntry { file(successCallback: WebKitFileCallback, errorCallback?: WebKitErrorCallback): void; } @@ -12913,7 +12402,6 @@ declare var WebKitFileEntry: { prototype: WebKitFileEntry; new(): WebKitFileEntry; } - interface WebKitFileSystem { readonly name: string; readonly root: WebKitDirectoryEntry; @@ -12923,7 +12411,6 @@ declare var WebKitFileSystem: { prototype: WebKitFileSystem; new(): WebKitFileSystem; } - interface WebKitPoint { x: number; y: number; @@ -12940,15 +12427,14 @@ interface WebSocketEventMap { "message": MessageEvent; "open": Event; } - interface WebSocket extends EventTarget { binaryType: string; readonly bufferedAmount: number; readonly extensions: string; - onclose: (this: WebSocket, ev: CloseEvent) => any; - onerror: (this: WebSocket, ev: Event) => any; - onmessage: (this: WebSocket, ev: MessageEvent) => any; - onopen: (this: WebSocket, ev: Event) => any; + onclose: (this: WebSocket, ev: CloseEvent) => any; + onerror: (this: WebSocket, ev: Event) => any; + onmessage: (this: WebSocket, ev: MessageEvent) => any; + onopen: (this: WebSocket, ev: Event) => any; readonly protocol: string; readonly readyState: number; readonly url: string; @@ -12959,7 +12445,7 @@ interface WebSocket extends EventTarget { readonly CONNECTING: number; readonly OPEN: number; addEventListener(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var WebSocket: { @@ -12970,8 +12456,7 @@ declare var WebSocket: { readonly CONNECTING: number; readonly OPEN: number; } - -interface WheelEvent extends MouseEvent { +interface WheelEvent extends MouseEvent { readonly deltaMode: number; readonly deltaX: number; readonly deltaY: number; @@ -13082,8 +12567,7 @@ interface WindowEventMap extends GlobalEventHandlersEventMap { "volumechange": Event; "waiting": Event; } - -interface Window extends EventTarget, WindowTimers, WindowSessionStorage, WindowLocalStorage, WindowConsole, GlobalEventHandlers, IDBEnvironment, WindowBase64, GlobalFetch { +interface Window extends EventTarget, WindowTimers, WindowSessionStorage, WindowLocalStorage, WindowConsole, GlobalEventHandlers, IDBEnvironment, WindowBase64, GlobalFetch { readonly applicationCache: ApplicationCache; readonly caches: CacheStorage; readonly clientInformation: Navigator; @@ -13110,97 +12594,97 @@ interface Window extends EventTarget, WindowTimers, WindowSessionStorage, Window name: string; readonly navigator: Navigator; offscreenBuffering: string | boolean; - onabort: (this: Window, ev: UIEvent) => any; - onafterprint: (this: Window, ev: Event) => any; - onbeforeprint: (this: Window, ev: Event) => any; - onbeforeunload: (this: Window, ev: BeforeUnloadEvent) => any; - onblur: (this: Window, ev: FocusEvent) => any; - oncanplay: (this: Window, ev: Event) => any; - oncanplaythrough: (this: Window, ev: Event) => any; - onchange: (this: Window, ev: Event) => any; - onclick: (this: Window, ev: MouseEvent) => any; - oncompassneedscalibration: (this: Window, ev: Event) => any; - oncontextmenu: (this: Window, ev: PointerEvent) => any; - ondblclick: (this: Window, ev: MouseEvent) => any; - ondevicelight: (this: Window, ev: DeviceLightEvent) => any; - ondevicemotion: (this: Window, ev: DeviceMotionEvent) => any; - ondeviceorientation: (this: Window, ev: DeviceOrientationEvent) => any; - ondrag: (this: Window, ev: DragEvent) => any; - ondragend: (this: Window, ev: DragEvent) => any; - ondragenter: (this: Window, ev: DragEvent) => any; - ondragleave: (this: Window, ev: DragEvent) => any; - ondragover: (this: Window, ev: DragEvent) => any; - ondragstart: (this: Window, ev: DragEvent) => any; - ondrop: (this: Window, ev: DragEvent) => any; - ondurationchange: (this: Window, ev: Event) => any; - onemptied: (this: Window, ev: Event) => any; - onended: (this: Window, ev: MediaStreamErrorEvent) => any; + onabort: (this: Window, ev: UIEvent) => any; + onafterprint: (this: Window, ev: Event) => any; + onbeforeprint: (this: Window, ev: Event) => any; + onbeforeunload: (this: Window, ev: BeforeUnloadEvent) => any; + onblur: (this: Window, ev: FocusEvent) => any; + oncanplay: (this: Window, ev: Event) => any; + oncanplaythrough: (this: Window, ev: Event) => any; + onchange: (this: Window, ev: Event) => any; + onclick: (this: Window, ev: MouseEvent) => any; + oncompassneedscalibration: (this: Window, ev: Event) => any; + oncontextmenu: (this: Window, ev: PointerEvent) => any; + ondblclick: (this: Window, ev: MouseEvent) => any; + ondevicelight: (this: Window, ev: DeviceLightEvent) => any; + ondevicemotion: (this: Window, ev: DeviceMotionEvent) => any; + ondeviceorientation: (this: Window, ev: DeviceOrientationEvent) => any; + ondrag: (this: Window, ev: DragEvent) => any; + ondragend: (this: Window, ev: DragEvent) => any; + ondragenter: (this: Window, ev: DragEvent) => any; + ondragleave: (this: Window, ev: DragEvent) => any; + ondragover: (this: Window, ev: DragEvent) => any; + ondragstart: (this: Window, ev: DragEvent) => any; + ondrop: (this: Window, ev: DragEvent) => any; + ondurationchange: (this: Window, ev: Event) => any; + onemptied: (this: Window, ev: Event) => any; + onended: (this: Window, ev: MediaStreamErrorEvent) => any; onerror: ErrorEventHandler; - onfocus: (this: Window, ev: FocusEvent) => any; - onhashchange: (this: Window, ev: HashChangeEvent) => any; - oninput: (this: Window, ev: Event) => any; - oninvalid: (this: Window, ev: Event) => any; - onkeydown: (this: Window, ev: KeyboardEvent) => any; - onkeypress: (this: Window, ev: KeyboardEvent) => any; - onkeyup: (this: Window, ev: KeyboardEvent) => any; - onload: (this: Window, ev: Event) => any; - onloadeddata: (this: Window, ev: Event) => any; - onloadedmetadata: (this: Window, ev: Event) => any; - onloadstart: (this: Window, ev: Event) => any; - onmessage: (this: Window, ev: MessageEvent) => any; - onmousedown: (this: Window, ev: MouseEvent) => any; - onmouseenter: (this: Window, ev: MouseEvent) => any; - onmouseleave: (this: Window, ev: MouseEvent) => any; - onmousemove: (this: Window, ev: MouseEvent) => any; - onmouseout: (this: Window, ev: MouseEvent) => any; - onmouseover: (this: Window, ev: MouseEvent) => any; - onmouseup: (this: Window, ev: MouseEvent) => any; - onmousewheel: (this: Window, ev: WheelEvent) => any; - onmsgesturechange: (this: Window, ev: MSGestureEvent) => any; - onmsgesturedoubletap: (this: Window, ev: MSGestureEvent) => any; - onmsgestureend: (this: Window, ev: MSGestureEvent) => any; - onmsgesturehold: (this: Window, ev: MSGestureEvent) => any; - onmsgesturestart: (this: Window, ev: MSGestureEvent) => any; - onmsgesturetap: (this: Window, ev: MSGestureEvent) => any; - onmsinertiastart: (this: Window, ev: MSGestureEvent) => any; - onmspointercancel: (this: Window, ev: MSPointerEvent) => any; - onmspointerdown: (this: Window, ev: MSPointerEvent) => any; - onmspointerenter: (this: Window, ev: MSPointerEvent) => any; - onmspointerleave: (this: Window, ev: MSPointerEvent) => any; - onmspointermove: (this: Window, ev: MSPointerEvent) => any; - onmspointerout: (this: Window, ev: MSPointerEvent) => any; - onmspointerover: (this: Window, ev: MSPointerEvent) => any; - onmspointerup: (this: Window, ev: MSPointerEvent) => any; - onoffline: (this: Window, ev: Event) => any; - ononline: (this: Window, ev: Event) => any; - onorientationchange: (this: Window, ev: Event) => any; - onpagehide: (this: Window, ev: PageTransitionEvent) => any; - onpageshow: (this: Window, ev: PageTransitionEvent) => any; - onpause: (this: Window, ev: Event) => any; - onplay: (this: Window, ev: Event) => any; - onplaying: (this: Window, ev: Event) => any; - onpopstate: (this: Window, ev: PopStateEvent) => any; - onprogress: (this: Window, ev: ProgressEvent) => any; - onratechange: (this: Window, ev: Event) => any; - onreadystatechange: (this: Window, ev: ProgressEvent) => any; - onreset: (this: Window, ev: Event) => any; - onresize: (this: Window, ev: UIEvent) => any; - onscroll: (this: Window, ev: UIEvent) => any; - onseeked: (this: Window, ev: Event) => any; - onseeking: (this: Window, ev: Event) => any; - onselect: (this: Window, ev: UIEvent) => any; - onstalled: (this: Window, ev: Event) => any; - onstorage: (this: Window, ev: StorageEvent) => any; - onsubmit: (this: Window, ev: Event) => any; - onsuspend: (this: Window, ev: Event) => any; - ontimeupdate: (this: Window, ev: Event) => any; + onfocus: (this: Window, ev: FocusEvent) => any; + onhashchange: (this: Window, ev: HashChangeEvent) => any; + oninput: (this: Window, ev: Event) => any; + oninvalid: (this: Window, ev: Event) => any; + onkeydown: (this: Window, ev: KeyboardEvent) => any; + onkeypress: (this: Window, ev: KeyboardEvent) => any; + onkeyup: (this: Window, ev: KeyboardEvent) => any; + onload: (this: Window, ev: Event) => any; + onloadeddata: (this: Window, ev: Event) => any; + onloadedmetadata: (this: Window, ev: Event) => any; + onloadstart: (this: Window, ev: Event) => any; + onmessage: (this: Window, ev: MessageEvent) => any; + onmousedown: (this: Window, ev: MouseEvent) => any; + onmouseenter: (this: Window, ev: MouseEvent) => any; + onmouseleave: (this: Window, ev: MouseEvent) => any; + onmousemove: (this: Window, ev: MouseEvent) => any; + onmouseout: (this: Window, ev: MouseEvent) => any; + onmouseover: (this: Window, ev: MouseEvent) => any; + onmouseup: (this: Window, ev: MouseEvent) => any; + onmousewheel: (this: Window, ev: WheelEvent) => any; + onmsgesturechange: (this: Window, ev: MSGestureEvent) => any; + onmsgesturedoubletap: (this: Window, ev: MSGestureEvent) => any; + onmsgestureend: (this: Window, ev: MSGestureEvent) => any; + onmsgesturehold: (this: Window, ev: MSGestureEvent) => any; + onmsgesturestart: (this: Window, ev: MSGestureEvent) => any; + onmsgesturetap: (this: Window, ev: MSGestureEvent) => any; + onmsinertiastart: (this: Window, ev: MSGestureEvent) => any; + onmspointercancel: (this: Window, ev: MSPointerEvent) => any; + onmspointerdown: (this: Window, ev: MSPointerEvent) => any; + onmspointerenter: (this: Window, ev: MSPointerEvent) => any; + onmspointerleave: (this: Window, ev: MSPointerEvent) => any; + onmspointermove: (this: Window, ev: MSPointerEvent) => any; + onmspointerout: (this: Window, ev: MSPointerEvent) => any; + onmspointerover: (this: Window, ev: MSPointerEvent) => any; + onmspointerup: (this: Window, ev: MSPointerEvent) => any; + onoffline: (this: Window, ev: Event) => any; + ononline: (this: Window, ev: Event) => any; + onorientationchange: (this: Window, ev: Event) => any; + onpagehide: (this: Window, ev: PageTransitionEvent) => any; + onpageshow: (this: Window, ev: PageTransitionEvent) => any; + onpause: (this: Window, ev: Event) => any; + onplay: (this: Window, ev: Event) => any; + onplaying: (this: Window, ev: Event) => any; + onpopstate: (this: Window, ev: PopStateEvent) => any; + onprogress: (this: Window, ev: ProgressEvent) => any; + onratechange: (this: Window, ev: Event) => any; + onreadystatechange: (this: Window, ev: ProgressEvent) => any; + onreset: (this: Window, ev: Event) => any; + onresize: (this: Window, ev: UIEvent) => any; + onscroll: (this: Window, ev: UIEvent) => any; + onseeked: (this: Window, ev: Event) => any; + onseeking: (this: Window, ev: Event) => any; + onselect: (this: Window, ev: UIEvent) => any; + onstalled: (this: Window, ev: Event) => any; + onstorage: (this: Window, ev: StorageEvent) => any; + onsubmit: (this: Window, ev: Event) => any; + onsuspend: (this: Window, ev: Event) => any; + ontimeupdate: (this: Window, ev: Event) => any; ontouchcancel: (ev: TouchEvent) => any; ontouchend: (ev: TouchEvent) => any; ontouchmove: (ev: TouchEvent) => any; ontouchstart: (ev: TouchEvent) => any; - onunload: (this: Window, ev: Event) => any; - onvolumechange: (this: Window, ev: Event) => any; - onwaiting: (this: Window, ev: Event) => any; + onunload: (this: Window, ev: Event) => any; + onvolumechange: (this: Window, ev: Event) => any; + onwaiting: (this: Window, ev: Event) => any; opener: any; orientation: string | number; readonly outerHeight: number; @@ -13264,7 +12748,7 @@ interface Window extends EventTarget, WindowTimers, WindowSessionStorage, Window scrollTo(options?: ScrollToOptions): void; scrollBy(options?: ScrollToOptions): void; addEventListener(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var Window: { @@ -13275,23 +12759,21 @@ declare var Window: { interface WorkerEventMap extends AbstractWorkerEventMap { "message": MessageEvent; } - -interface Worker extends EventTarget, AbstractWorker { - onmessage: (this: Worker, ev: MessageEvent) => any; +interface Worker extends EventTarget, AbstractWorker { + onmessage: (this: Worker, ev: MessageEvent) => any; postMessage(message: any, transfer?: any[]): void; terminate(): void; addEventListener(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var Worker: { prototype: Worker; new(stringUrl: string): Worker; } - interface XMLDocument extends Document { addEventListener(type: K, listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var XMLDocument: { @@ -13302,9 +12784,8 @@ declare var XMLDocument: { interface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap { "readystatechange": Event; } - -interface XMLHttpRequest extends EventTarget, XMLHttpRequestEventTarget { - onreadystatechange: (this: XMLHttpRequest, ev: Event) => any; +interface XMLHttpRequest extends EventTarget, XMLHttpRequestEventTarget { + onreadystatechange: (this: XMLHttpRequest, ev: Event) => any; readonly readyState: number; readonly response: any; readonly responseText: string; @@ -13333,7 +12814,7 @@ interface XMLHttpRequest extends EventTarget, XMLHttpRequestEventTarget { readonly OPENED: number; readonly UNSENT: number; addEventListener(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var XMLHttpRequest: { @@ -13345,17 +12826,15 @@ declare var XMLHttpRequest: { readonly OPENED: number; readonly UNSENT: number; } - -interface XMLHttpRequestUpload extends EventTarget, XMLHttpRequestEventTarget { +interface XMLHttpRequestUpload extends EventTarget, XMLHttpRequestEventTarget { addEventListener(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var XMLHttpRequestUpload: { prototype: XMLHttpRequestUpload; new(): XMLHttpRequestUpload; } - interface XMLSerializer { serializeToString(target: Node): string; } @@ -13364,7 +12843,6 @@ declare var XMLSerializer: { prototype: XMLSerializer; new(): XMLSerializer; } - interface XPathEvaluator { createExpression(expression: string, resolver: XPathNSResolver): XPathExpression; createNSResolver(nodeResolver?: Node): XPathNSResolver; @@ -13375,7 +12853,6 @@ declare var XPathEvaluator: { prototype: XPathEvaluator; new(): XPathEvaluator; } - interface XPathExpression { evaluate(contextNode: Node, type: number, result: XPathResult | null): XPathResult; } @@ -13384,7 +12861,6 @@ declare var XPathExpression: { prototype: XPathExpression; new(): XPathExpression; } - interface XPathNSResolver { lookupNamespaceURI(prefix: string): string; } @@ -13393,7 +12869,6 @@ declare var XPathNSResolver: { prototype: XPathNSResolver; new(): XPathNSResolver; } - interface XPathResult { readonly booleanValue: boolean; readonly invalidIteratorState: boolean; @@ -13430,7 +12905,6 @@ declare var XPathResult: { readonly UNORDERED_NODE_ITERATOR_TYPE: number; readonly UNORDERED_NODE_SNAPSHOT_TYPE: number; } - interface XSLTProcessor { clearParameters(): void; getParameter(namespaceURI: string, localName: string): any; @@ -13446,10 +12920,9 @@ declare var XSLTProcessor: { prototype: XSLTProcessor; new(): XSLTProcessor; } - interface webkitRTCPeerConnection extends RTCPeerConnection { addEventListener(type: K, listener: (this: webkitRTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var webkitRTCPeerConnection: { @@ -13460,13 +12933,9 @@ declare var webkitRTCPeerConnection: { interface AbstractWorkerEventMap { "error": ErrorEvent; } - -interface AbstractWorker { - onerror: (this: AbstractWorker, ev: ErrorEvent) => any; - addEventListener(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +interface AbstractWorker { + onerror: (this: AbstractWorker, ev: ErrorEvent) => any; } - interface Body { readonly bodyUsed: boolean; arrayBuffer(): Promise; @@ -13474,7 +12943,6 @@ interface Body { json(): Promise; text(): Promise; } - interface CanvasPathMethods { arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, anticlockwise?: boolean): void; arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void; @@ -13486,19 +12954,15 @@ interface CanvasPathMethods { quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void; rect(x: number, y: number, w: number, h: number): void; } - interface ChildNode { remove(): void; } - interface DOML2DeprecatedColorProperty { color: string; } - interface DOML2DeprecatedSizeProperty { size: number; } - interface DocumentEvent { createEvent(eventInterface:"AnimationEvent"): AnimationEvent; createEvent(eventInterface:"AudioProcessingEvent"): AudioProcessingEvent; @@ -13573,7 +13037,6 @@ interface DocumentEvent { createEvent(eventInterface:"WheelEvent"): WheelEvent; createEvent(eventInterface: string): Event; } - interface ElementTraversal { readonly childElementCount: number; readonly firstElementChild: Element | null; @@ -13581,7 +13044,6 @@ interface ElementTraversal { readonly nextElementSibling: Element | null; readonly previousElementSibling: Element | null; } - interface GetSVGDocument { getSVGDocument(): Document; } @@ -13597,25 +13059,20 @@ interface GlobalEventHandlersEventMap { "pointerup": PointerEvent; "wheel": WheelEvent; } - -interface GlobalEventHandlers { - onpointercancel: (this: GlobalEventHandlers, ev: PointerEvent) => any; - onpointerdown: (this: GlobalEventHandlers, ev: PointerEvent) => any; - onpointerenter: (this: GlobalEventHandlers, ev: PointerEvent) => any; - onpointerleave: (this: GlobalEventHandlers, ev: PointerEvent) => any; - onpointermove: (this: GlobalEventHandlers, ev: PointerEvent) => any; - onpointerout: (this: GlobalEventHandlers, ev: PointerEvent) => any; - onpointerover: (this: GlobalEventHandlers, ev: PointerEvent) => any; - onpointerup: (this: GlobalEventHandlers, ev: PointerEvent) => any; - onwheel: (this: GlobalEventHandlers, ev: WheelEvent) => any; - addEventListener(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +interface GlobalEventHandlers { + onpointercancel: (this: GlobalEventHandlers, ev: PointerEvent) => any; + onpointerdown: (this: GlobalEventHandlers, ev: PointerEvent) => any; + onpointerenter: (this: GlobalEventHandlers, ev: PointerEvent) => any; + onpointerleave: (this: GlobalEventHandlers, ev: PointerEvent) => any; + onpointermove: (this: GlobalEventHandlers, ev: PointerEvent) => any; + onpointerout: (this: GlobalEventHandlers, ev: PointerEvent) => any; + onpointerover: (this: GlobalEventHandlers, ev: PointerEvent) => any; + onpointerup: (this: GlobalEventHandlers, ev: PointerEvent) => any; + onwheel: (this: GlobalEventHandlers, ev: WheelEvent) => any; } - interface GlobalFetch { fetch(input: RequestInfo, init?: RequestInit): Promise; } - interface HTMLTableAlignment { /** * Sets or retrieves a value that you can use to implement your own ch functionality for the object. @@ -13630,11 +13087,9 @@ interface HTMLTableAlignment { */ vAlign: string; } - interface IDBEnvironment { readonly indexedDB: IDBFactory; } - interface LinkStyle { readonly sheet: StyleSheet; } @@ -13647,29 +13102,24 @@ interface MSBaseReaderEventMap { "loadstart": Event; "progress": ProgressEvent; } - -interface MSBaseReader { - onabort: (this: MSBaseReader, ev: Event) => any; - onerror: (this: MSBaseReader, ev: ErrorEvent) => any; - onload: (this: MSBaseReader, ev: Event) => any; - onloadend: (this: MSBaseReader, ev: ProgressEvent) => any; - onloadstart: (this: MSBaseReader, ev: Event) => any; - onprogress: (this: MSBaseReader, ev: ProgressEvent) => any; +interface MSBaseReader { + onabort: (this: MSBaseReader, ev: Event) => any; + onerror: (this: MSBaseReader, ev: ErrorEvent) => any; + onload: (this: MSBaseReader, ev: Event) => any; + onloadend: (this: MSBaseReader, ev: ProgressEvent) => any; + onloadstart: (this: MSBaseReader, ev: Event) => any; + onprogress: (this: MSBaseReader, ev: ProgressEvent) => any; readonly readyState: number; readonly result: any; abort(): void; readonly DONE: number; readonly EMPTY: number; readonly LOADING: number; - addEventListener(type: K, listener: (this: MSBaseReader, ev: MSBaseReaderEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } - interface MSFileSaver { msSaveBlob(blob: any, defaultName?: string): boolean; msSaveOrOpenBlob(blob: any, defaultName?: string): boolean; } - interface MSNavigatorDoNotTrack { confirmSiteSpecificTrackingException(args: ConfirmSiteSpecificExceptionsInformation): boolean; confirmWebWideTrackingException(args: ExceptionInformation): boolean; @@ -13678,22 +13128,17 @@ interface MSNavigatorDoNotTrack { storeSiteSpecificTrackingException(args: StoreSiteSpecificExceptionsInformation): void; storeWebWideTrackingException(args: StoreExceptionsInformation): void; } - interface NavigatorBeacon { sendBeacon(url: USVString, data?: BodyInit): boolean; } - interface NavigatorConcurrentHardware { readonly hardwareConcurrency: number; } - interface NavigatorContentUtils { } - interface NavigatorGeolocation { readonly geolocation: Geolocation; } - interface NavigatorID { readonly appCodeName: string; readonly appName: string; @@ -13705,35 +13150,28 @@ interface NavigatorID { readonly vendor: string; readonly vendorSub: string; } - interface NavigatorOnLine { readonly onLine: boolean; } - interface NavigatorStorageUtils { } - interface NavigatorUserMedia { readonly mediaDevices: MediaDevices; getUserMedia(constraints: MediaStreamConstraints, successCallback: NavigatorUserMediaSuccessCallback, errorCallback: NavigatorUserMediaErrorCallback): void; } - interface NodeSelector { querySelector(selectors: K): ElementTagNameMap[K] | null; querySelector(selectors: string): Element | null; querySelectorAll(selectors: K): ElementListTagNameMap[K]; querySelectorAll(selectors: string): NodeListOf; } - interface RandomSource { getRandomValues(array: ArrayBufferView): ArrayBufferView; } - interface SVGAnimatedPoints { readonly animatedPoints: SVGPointList; readonly points: SVGPointList; } - interface SVGFilterPrimitiveStandardAttributes { readonly height: SVGAnimatedLength; readonly result: SVGAnimatedString; @@ -13741,40 +13179,32 @@ interface SVGFilterPrimitiveStandardAttributes { readonly x: SVGAnimatedLength; readonly y: SVGAnimatedLength; } - interface SVGFitToViewBox { readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio; readonly viewBox: SVGAnimatedRect; } - interface SVGTests { readonly requiredExtensions: SVGStringList; readonly requiredFeatures: SVGStringList; readonly systemLanguage: SVGStringList; hasExtension(extension: string): boolean; } - interface SVGURIReference { readonly href: SVGAnimatedString; } - interface WindowBase64 { atob(encodedString: string): string; btoa(rawString: string): string; } - interface WindowConsole { readonly console: Console; } - interface WindowLocalStorage { readonly localStorage: Storage; } - interface WindowSessionStorage { readonly sessionStorage: Storage; } - interface WindowTimers extends Object, WindowTimersExtension { clearInterval(handle: number): void; clearTimeout(handle: number): void; @@ -13783,7 +13213,6 @@ interface WindowTimers extends Object, WindowTimersExtension { setTimeout(handler: (...args: any[]) => void, timeout: number): number; setTimeout(handler: any, timeout?: any, ...args: any[]): number; } - interface WindowTimersExtension { clearImmediate(handle: number): void; setImmediate(handler: (...args: any[]) => void): number; @@ -13799,17 +13228,14 @@ interface XMLHttpRequestEventTargetEventMap { "progress": ProgressEvent; "timeout": ProgressEvent; } - -interface XMLHttpRequestEventTarget { - onabort: (this: XMLHttpRequestEventTarget, ev: Event) => any; - onerror: (this: XMLHttpRequestEventTarget, ev: ErrorEvent) => any; - onload: (this: XMLHttpRequestEventTarget, ev: Event) => any; - onloadend: (this: XMLHttpRequestEventTarget, ev: ProgressEvent) => any; - onloadstart: (this: XMLHttpRequestEventTarget, ev: Event) => any; - onprogress: (this: XMLHttpRequestEventTarget, ev: ProgressEvent) => any; - ontimeout: (this: XMLHttpRequestEventTarget, ev: ProgressEvent) => any; - addEventListener(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +interface XMLHttpRequestEventTarget { + onabort: (this: XMLHttpRequestEventTarget, ev: Event) => any; + onerror: (this: XMLHttpRequestEventTarget, ev: ErrorEvent) => any; + onload: (this: XMLHttpRequestEventTarget, ev: Event) => any; + onloadend: (this: XMLHttpRequestEventTarget, ev: ProgressEvent) => any; + onloadstart: (this: XMLHttpRequestEventTarget, ev: Event) => any; + onprogress: (this: XMLHttpRequestEventTarget, ev: ProgressEvent) => any; + ontimeout: (this: XMLHttpRequestEventTarget, ev: ProgressEvent) => any; } interface ErrorEventInit { @@ -13891,8 +13317,8 @@ interface FilePropertyBag { lastModified?: number; } -interface EventListenerObject { - handleEvent(evt: Event): void; +interface EventListenerObject { + handleEvent(evt: Event): void; } interface ProgressEventInit extends EventInit { @@ -14148,7 +13574,7 @@ interface PromiseRejectionEventInit extends EventInit { reason?: any; } -declare type EventListenerOrEventListenerObject = EventListener | EventListenerObject; +declare type EventListenerOrEventListenerObject = EventListener | EventListenerObject; interface ErrorEventHandler { (message: string, filename?: string, lineno?: number, colno?: number, error?:Error): void; @@ -14692,97 +14118,97 @@ declare var msCredentials: MSCredentials; declare const name: never; declare var navigator: Navigator; declare var offscreenBuffering: string | boolean; -declare var onabort: (this: Window, ev: UIEvent) => any; -declare var onafterprint: (this: Window, ev: Event) => any; -declare var onbeforeprint: (this: Window, ev: Event) => any; -declare var onbeforeunload: (this: Window, ev: BeforeUnloadEvent) => any; -declare var onblur: (this: Window, ev: FocusEvent) => any; -declare var oncanplay: (this: Window, ev: Event) => any; -declare var oncanplaythrough: (this: Window, ev: Event) => any; -declare var onchange: (this: Window, ev: Event) => any; -declare var onclick: (this: Window, ev: MouseEvent) => any; -declare var oncompassneedscalibration: (this: Window, ev: Event) => any; -declare var oncontextmenu: (this: Window, ev: PointerEvent) => any; -declare var ondblclick: (this: Window, ev: MouseEvent) => any; -declare var ondevicelight: (this: Window, ev: DeviceLightEvent) => any; -declare var ondevicemotion: (this: Window, ev: DeviceMotionEvent) => any; -declare var ondeviceorientation: (this: Window, ev: DeviceOrientationEvent) => any; -declare var ondrag: (this: Window, ev: DragEvent) => any; -declare var ondragend: (this: Window, ev: DragEvent) => any; -declare var ondragenter: (this: Window, ev: DragEvent) => any; -declare var ondragleave: (this: Window, ev: DragEvent) => any; -declare var ondragover: (this: Window, ev: DragEvent) => any; -declare var ondragstart: (this: Window, ev: DragEvent) => any; -declare var ondrop: (this: Window, ev: DragEvent) => any; -declare var ondurationchange: (this: Window, ev: Event) => any; -declare var onemptied: (this: Window, ev: Event) => any; -declare var onended: (this: Window, ev: MediaStreamErrorEvent) => any; +declare var onabort: (this: Window, ev: UIEvent) => any; +declare var onafterprint: (this: Window, ev: Event) => any; +declare var onbeforeprint: (this: Window, ev: Event) => any; +declare var onbeforeunload: (this: Window, ev: BeforeUnloadEvent) => any; +declare var onblur: (this: Window, ev: FocusEvent) => any; +declare var oncanplay: (this: Window, ev: Event) => any; +declare var oncanplaythrough: (this: Window, ev: Event) => any; +declare var onchange: (this: Window, ev: Event) => any; +declare var onclick: (this: Window, ev: MouseEvent) => any; +declare var oncompassneedscalibration: (this: Window, ev: Event) => any; +declare var oncontextmenu: (this: Window, ev: PointerEvent) => any; +declare var ondblclick: (this: Window, ev: MouseEvent) => any; +declare var ondevicelight: (this: Window, ev: DeviceLightEvent) => any; +declare var ondevicemotion: (this: Window, ev: DeviceMotionEvent) => any; +declare var ondeviceorientation: (this: Window, ev: DeviceOrientationEvent) => any; +declare var ondrag: (this: Window, ev: DragEvent) => any; +declare var ondragend: (this: Window, ev: DragEvent) => any; +declare var ondragenter: (this: Window, ev: DragEvent) => any; +declare var ondragleave: (this: Window, ev: DragEvent) => any; +declare var ondragover: (this: Window, ev: DragEvent) => any; +declare var ondragstart: (this: Window, ev: DragEvent) => any; +declare var ondrop: (this: Window, ev: DragEvent) => any; +declare var ondurationchange: (this: Window, ev: Event) => any; +declare var onemptied: (this: Window, ev: Event) => any; +declare var onended: (this: Window, ev: MediaStreamErrorEvent) => any; declare var onerror: ErrorEventHandler; -declare var onfocus: (this: Window, ev: FocusEvent) => any; -declare var onhashchange: (this: Window, ev: HashChangeEvent) => any; -declare var oninput: (this: Window, ev: Event) => any; -declare var oninvalid: (this: Window, ev: Event) => any; -declare var onkeydown: (this: Window, ev: KeyboardEvent) => any; -declare var onkeypress: (this: Window, ev: KeyboardEvent) => any; -declare var onkeyup: (this: Window, ev: KeyboardEvent) => any; -declare var onload: (this: Window, ev: Event) => any; -declare var onloadeddata: (this: Window, ev: Event) => any; -declare var onloadedmetadata: (this: Window, ev: Event) => any; -declare var onloadstart: (this: Window, ev: Event) => any; -declare var onmessage: (this: Window, ev: MessageEvent) => any; -declare var onmousedown: (this: Window, ev: MouseEvent) => any; -declare var onmouseenter: (this: Window, ev: MouseEvent) => any; -declare var onmouseleave: (this: Window, ev: MouseEvent) => any; -declare var onmousemove: (this: Window, ev: MouseEvent) => any; -declare var onmouseout: (this: Window, ev: MouseEvent) => any; -declare var onmouseover: (this: Window, ev: MouseEvent) => any; -declare var onmouseup: (this: Window, ev: MouseEvent) => any; -declare var onmousewheel: (this: Window, ev: WheelEvent) => any; -declare var onmsgesturechange: (this: Window, ev: MSGestureEvent) => any; -declare var onmsgesturedoubletap: (this: Window, ev: MSGestureEvent) => any; -declare var onmsgestureend: (this: Window, ev: MSGestureEvent) => any; -declare var onmsgesturehold: (this: Window, ev: MSGestureEvent) => any; -declare var onmsgesturestart: (this: Window, ev: MSGestureEvent) => any; -declare var onmsgesturetap: (this: Window, ev: MSGestureEvent) => any; -declare var onmsinertiastart: (this: Window, ev: MSGestureEvent) => any; -declare var onmspointercancel: (this: Window, ev: MSPointerEvent) => any; -declare var onmspointerdown: (this: Window, ev: MSPointerEvent) => any; -declare var onmspointerenter: (this: Window, ev: MSPointerEvent) => any; -declare var onmspointerleave: (this: Window, ev: MSPointerEvent) => any; -declare var onmspointermove: (this: Window, ev: MSPointerEvent) => any; -declare var onmspointerout: (this: Window, ev: MSPointerEvent) => any; -declare var onmspointerover: (this: Window, ev: MSPointerEvent) => any; -declare var onmspointerup: (this: Window, ev: MSPointerEvent) => any; -declare var onoffline: (this: Window, ev: Event) => any; -declare var ononline: (this: Window, ev: Event) => any; -declare var onorientationchange: (this: Window, ev: Event) => any; -declare var onpagehide: (this: Window, ev: PageTransitionEvent) => any; -declare var onpageshow: (this: Window, ev: PageTransitionEvent) => any; -declare var onpause: (this: Window, ev: Event) => any; -declare var onplay: (this: Window, ev: Event) => any; -declare var onplaying: (this: Window, ev: Event) => any; -declare var onpopstate: (this: Window, ev: PopStateEvent) => any; -declare var onprogress: (this: Window, ev: ProgressEvent) => any; -declare var onratechange: (this: Window, ev: Event) => any; -declare var onreadystatechange: (this: Window, ev: ProgressEvent) => any; -declare var onreset: (this: Window, ev: Event) => any; -declare var onresize: (this: Window, ev: UIEvent) => any; -declare var onscroll: (this: Window, ev: UIEvent) => any; -declare var onseeked: (this: Window, ev: Event) => any; -declare var onseeking: (this: Window, ev: Event) => any; -declare var onselect: (this: Window, ev: UIEvent) => any; -declare var onstalled: (this: Window, ev: Event) => any; -declare var onstorage: (this: Window, ev: StorageEvent) => any; -declare var onsubmit: (this: Window, ev: Event) => any; -declare var onsuspend: (this: Window, ev: Event) => any; -declare var ontimeupdate: (this: Window, ev: Event) => any; +declare var onfocus: (this: Window, ev: FocusEvent) => any; +declare var onhashchange: (this: Window, ev: HashChangeEvent) => any; +declare var oninput: (this: Window, ev: Event) => any; +declare var oninvalid: (this: Window, ev: Event) => any; +declare var onkeydown: (this: Window, ev: KeyboardEvent) => any; +declare var onkeypress: (this: Window, ev: KeyboardEvent) => any; +declare var onkeyup: (this: Window, ev: KeyboardEvent) => any; +declare var onload: (this: Window, ev: Event) => any; +declare var onloadeddata: (this: Window, ev: Event) => any; +declare var onloadedmetadata: (this: Window, ev: Event) => any; +declare var onloadstart: (this: Window, ev: Event) => any; +declare var onmessage: (this: Window, ev: MessageEvent) => any; +declare var onmousedown: (this: Window, ev: MouseEvent) => any; +declare var onmouseenter: (this: Window, ev: MouseEvent) => any; +declare var onmouseleave: (this: Window, ev: MouseEvent) => any; +declare var onmousemove: (this: Window, ev: MouseEvent) => any; +declare var onmouseout: (this: Window, ev: MouseEvent) => any; +declare var onmouseover: (this: Window, ev: MouseEvent) => any; +declare var onmouseup: (this: Window, ev: MouseEvent) => any; +declare var onmousewheel: (this: Window, ev: WheelEvent) => any; +declare var onmsgesturechange: (this: Window, ev: MSGestureEvent) => any; +declare var onmsgesturedoubletap: (this: Window, ev: MSGestureEvent) => any; +declare var onmsgestureend: (this: Window, ev: MSGestureEvent) => any; +declare var onmsgesturehold: (this: Window, ev: MSGestureEvent) => any; +declare var onmsgesturestart: (this: Window, ev: MSGestureEvent) => any; +declare var onmsgesturetap: (this: Window, ev: MSGestureEvent) => any; +declare var onmsinertiastart: (this: Window, ev: MSGestureEvent) => any; +declare var onmspointercancel: (this: Window, ev: MSPointerEvent) => any; +declare var onmspointerdown: (this: Window, ev: MSPointerEvent) => any; +declare var onmspointerenter: (this: Window, ev: MSPointerEvent) => any; +declare var onmspointerleave: (this: Window, ev: MSPointerEvent) => any; +declare var onmspointermove: (this: Window, ev: MSPointerEvent) => any; +declare var onmspointerout: (this: Window, ev: MSPointerEvent) => any; +declare var onmspointerover: (this: Window, ev: MSPointerEvent) => any; +declare var onmspointerup: (this: Window, ev: MSPointerEvent) => any; +declare var onoffline: (this: Window, ev: Event) => any; +declare var ononline: (this: Window, ev: Event) => any; +declare var onorientationchange: (this: Window, ev: Event) => any; +declare var onpagehide: (this: Window, ev: PageTransitionEvent) => any; +declare var onpageshow: (this: Window, ev: PageTransitionEvent) => any; +declare var onpause: (this: Window, ev: Event) => any; +declare var onplay: (this: Window, ev: Event) => any; +declare var onplaying: (this: Window, ev: Event) => any; +declare var onpopstate: (this: Window, ev: PopStateEvent) => any; +declare var onprogress: (this: Window, ev: ProgressEvent) => any; +declare var onratechange: (this: Window, ev: Event) => any; +declare var onreadystatechange: (this: Window, ev: ProgressEvent) => any; +declare var onreset: (this: Window, ev: Event) => any; +declare var onresize: (this: Window, ev: UIEvent) => any; +declare var onscroll: (this: Window, ev: UIEvent) => any; +declare var onseeked: (this: Window, ev: Event) => any; +declare var onseeking: (this: Window, ev: Event) => any; +declare var onselect: (this: Window, ev: UIEvent) => any; +declare var onstalled: (this: Window, ev: Event) => any; +declare var onstorage: (this: Window, ev: StorageEvent) => any; +declare var onsubmit: (this: Window, ev: Event) => any; +declare var onsuspend: (this: Window, ev: Event) => any; +declare var ontimeupdate: (this: Window, ev: Event) => any; declare var ontouchcancel: (ev: TouchEvent) => any; declare var ontouchend: (ev: TouchEvent) => any; declare var ontouchmove: (ev: TouchEvent) => any; declare var ontouchstart: (ev: TouchEvent) => any; -declare var onunload: (this: Window, ev: Event) => any; -declare var onvolumechange: (this: Window, ev: Event) => any; -declare var onwaiting: (this: Window, ev: Event) => any; +declare var onunload: (this: Window, ev: Event) => any; +declare var onvolumechange: (this: Window, ev: Event) => any; +declare var onwaiting: (this: Window, ev: Event) => any; declare var opener: any; declare var orientation: string | number; declare var outerHeight: number; @@ -14845,7 +14271,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, useCapture?: boolean): void; declare function clearInterval(handle: number): void; declare function clearTimeout(handle: number): void; declare function setInterval(handler: (...args: any[]) => void, timeout: number): number; @@ -14858,21 +14284,21 @@ declare function setImmediate(handler: any, ...args: any[]): number; declare var sessionStorage: Storage; declare var localStorage: Storage; declare var console: Console; -declare var onpointercancel: (this: Window, ev: PointerEvent) => any; -declare var onpointerdown: (this: Window, ev: PointerEvent) => any; -declare var onpointerenter: (this: Window, ev: PointerEvent) => any; -declare var onpointerleave: (this: Window, ev: PointerEvent) => any; -declare var onpointermove: (this: Window, ev: PointerEvent) => any; -declare var onpointerout: (this: Window, ev: PointerEvent) => any; -declare var onpointerover: (this: Window, ev: PointerEvent) => any; -declare var onpointerup: (this: Window, ev: PointerEvent) => any; -declare var onwheel: (this: Window, ev: WheelEvent) => any; +declare var onpointercancel: (this: Window, ev: PointerEvent) => any; +declare var onpointerdown: (this: Window, ev: PointerEvent) => any; +declare var onpointerenter: (this: Window, ev: PointerEvent) => any; +declare var onpointerleave: (this: Window, ev: PointerEvent) => any; +declare var onpointermove: (this: Window, ev: PointerEvent) => any; +declare var onpointerout: (this: Window, ev: PointerEvent) => any; +declare var onpointerover: (this: Window, ev: PointerEvent) => any; +declare var onpointerup: (this: Window, ev: PointerEvent) => any; +declare var onwheel: (this: Window, ev: WheelEvent) => any; declare var indexedDB: IDBFactory; declare function atob(encodedString: string): string; declare function btoa(rawString: string): string; declare function fetch(input: RequestInfo, init?: RequestInit): Promise; declare function addEventListener(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, useCapture?: boolean): void; -declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; type AAGUID = string; type AlgorithmIdentifier = string | Algorithm; type BodyInit = any; diff --git a/baselines/webworker.generated.d.ts b/baselines/webworker.generated.d.ts index a3d174697..28fa397bd 100644 --- a/baselines/webworker.generated.d.ts +++ b/baselines/webworker.generated.d.ts @@ -123,22 +123,21 @@ interface SyncEventInit extends ExtendableEventInit { lastChance?: boolean; } -interface EventListener { - (evt: Event): void; +interface EventListener { + (evt: Event): void; } interface WebKitEntriesCallback { - (evt: Event): void; + (entries: WebKitEntry[]): void; } interface WebKitErrorCallback { - (evt: Event): void; + (err: DOMError): void; } interface WebKitFileCallback { - (evt: Event): void; + (file: File): void; } - interface AudioBuffer { readonly duration: number; readonly length: number; @@ -153,7 +152,6 @@ declare var AudioBuffer: { prototype: AudioBuffer; new(): AudioBuffer; } - interface Blob { readonly size: number; readonly type: string; @@ -166,7 +164,6 @@ declare var Blob: { prototype: Blob; new (blobParts?: any[], options?: BlobPropertyBag): Blob; } - interface Cache { add(request: RequestInfo): Promise; addAll(requests: RequestInfo[]): Promise; @@ -181,7 +178,6 @@ declare var Cache: { prototype: Cache; new(): Cache; } - interface CacheStorage { delete(cacheName: string): Promise; has(cacheName: string): Promise; @@ -194,8 +190,7 @@ declare var CacheStorage: { prototype: CacheStorage; new(): CacheStorage; } - -interface CloseEvent extends Event { +interface CloseEvent extends Event { readonly code: number; readonly reason: string; readonly wasClean: boolean; @@ -206,7 +201,6 @@ declare var CloseEvent: { prototype: CloseEvent; new(typeArg: string, eventInitDict?: CloseEventInit): CloseEvent; } - interface Console { assert(test?: boolean, message?: string, ...optionalParams: any[]): void; clear(): void; @@ -236,7 +230,6 @@ declare var Console: { prototype: Console; new(): Console; } - interface Coordinates { readonly accuracy: number; readonly altitude: number | null; @@ -251,7 +244,6 @@ declare var Coordinates: { prototype: Coordinates; new(): Coordinates; } - interface CryptoKey { readonly algorithm: KeyAlgorithm; readonly extractable: boolean; @@ -263,7 +255,6 @@ declare var CryptoKey: { prototype: CryptoKey; new(): CryptoKey; } - interface DOMError { readonly name: string; toString(): string; @@ -273,7 +264,6 @@ declare var DOMError: { prototype: DOMError; new(): DOMError; } - interface DOMException { readonly code: number; readonly message: string; @@ -339,7 +329,6 @@ declare var DOMException: { readonly VALIDATION_ERR: number; readonly WRONG_DOCUMENT_ERR: number; } - interface DOMStringList { readonly length: number; contains(str: string): boolean; @@ -351,8 +340,7 @@ declare var DOMStringList: { prototype: DOMStringList; new(): DOMStringList; } - -interface ErrorEvent extends Event { +interface ErrorEvent extends Event { readonly colno: number; readonly error: any; readonly filename: string; @@ -365,18 +353,17 @@ declare var ErrorEvent: { prototype: ErrorEvent; new(type: string, errorEventInitDict?: ErrorEventInit): ErrorEvent; } - -interface Event { +interface Event { readonly bubbles: boolean; cancelBubble: boolean; readonly cancelable: boolean; - readonly currentTarget: EventTarget; + readonly currentTarget: T; readonly defaultPrevented: boolean; readonly eventPhase: number; readonly isTrusted: boolean; returnValue: boolean; readonly srcElement: any; - readonly target: EventTarget; + readonly target: T; readonly timeStamp: number; readonly type: string; readonly scoped: boolean; @@ -397,18 +384,16 @@ declare var Event: { readonly BUBBLING_PHASE: number; readonly CAPTURING_PHASE: number; } - interface EventTarget { - addEventListener(type: string, listener?: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener?: EventListenerOrEventListenerObject, useCapture?: boolean): void; dispatchEvent(evt: Event): boolean; - removeEventListener(type: string, listener?: EventListenerOrEventListenerObject, useCapture?: boolean): void; + removeEventListener(type: string, listener?: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var EventTarget: { prototype: EventTarget; new(): EventTarget; } - interface File extends Blob { readonly lastModifiedDate: any; readonly name: string; @@ -419,7 +404,6 @@ declare var File: { prototype: File; new (parts: (ArrayBuffer | ArrayBufferView | Blob | string)[], filename: string, properties?: FilePropertyBag): File; } - interface FileList { readonly length: number; item(index: number): File; @@ -430,22 +414,20 @@ declare var FileList: { prototype: FileList; new(): FileList; } - -interface FileReader extends EventTarget, MSBaseReader { +interface FileReader extends EventTarget, MSBaseReader { readonly error: DOMError; readAsArrayBuffer(blob: Blob): void; readAsBinaryString(blob: Blob): void; readAsDataURL(blob: Blob): void; readAsText(blob: Blob, encoding?: string): void; addEventListener(type: K, listener: (this: FileReader, ev: MSBaseReaderEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var FileReader: { prototype: FileReader; new(): FileReader; } - interface Headers { append(name: string, value: string): void; delete(name: string): void; @@ -459,7 +441,6 @@ declare var Headers: { prototype: Headers; new(init?: any): Headers; } - interface IDBCursor { readonly direction: string; key: IDBKeyRange | IDBValidKey; @@ -483,7 +464,6 @@ declare var IDBCursor: { readonly PREV: string; readonly PREV_NO_DUPLICATE: string; } - interface IDBCursorWithValue extends IDBCursor { readonly value: any; } @@ -497,12 +477,11 @@ interface IDBDatabaseEventMap { "abort": Event; "error": Event; } - interface IDBDatabase extends EventTarget { readonly name: string; readonly objectStoreNames: DOMStringList; - onabort: (this: IDBDatabase, ev: Event) => any; - onerror: (this: IDBDatabase, ev: Event) => any; + onabort: (this: IDBDatabase, ev: Event) => any; + onerror: (this: IDBDatabase, ev: Event) => any; version: number; onversionchange: (ev: IDBVersionChangeEvent) => any; close(): void; @@ -511,14 +490,13 @@ interface IDBDatabase extends EventTarget { transaction(storeNames: string | string[], mode?: string): IDBTransaction; addEventListener(type: "versionchange", listener: (ev: IDBVersionChangeEvent) => any, useCapture?: boolean): void; addEventListener(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var IDBDatabase: { prototype: IDBDatabase; new(): IDBDatabase; } - interface IDBFactory { cmp(first: any, second: any): number; deleteDatabase(name: string): IDBOpenDBRequest; @@ -529,7 +507,6 @@ declare var IDBFactory: { prototype: IDBFactory; new(): IDBFactory; } - interface IDBIndex { keyPath: string | string[]; readonly name: string; @@ -547,7 +524,6 @@ declare var IDBIndex: { prototype: IDBIndex; new(): IDBIndex; } - interface IDBKeyRange { readonly lower: any; readonly lowerOpen: boolean; @@ -563,7 +539,6 @@ declare var IDBKeyRange: { only(value: any): IDBKeyRange; upperBound(upper: any, open?: boolean): IDBKeyRange; } - interface IDBObjectStore { readonly indexNames: DOMStringList; keyPath: string | string[]; @@ -591,12 +566,11 @@ interface IDBOpenDBRequestEventMap extends IDBRequestEventMap { "blocked": Event; "upgradeneeded": IDBVersionChangeEvent; } - interface IDBOpenDBRequest extends IDBRequest { - onblocked: (this: IDBOpenDBRequest, ev: Event) => any; - onupgradeneeded: (this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any; + onblocked: (this: IDBOpenDBRequest, ev: Event) => any; + onupgradeneeded: (this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any; addEventListener(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var IDBOpenDBRequest: { @@ -608,17 +582,16 @@ interface IDBRequestEventMap { "error": Event; "success": Event; } - interface IDBRequest extends EventTarget { readonly error: DOMError; - onerror: (this: IDBRequest, ev: Event) => any; - onsuccess: (this: IDBRequest, ev: Event) => any; + onerror: (this: IDBRequest, ev: Event) => any; + onsuccess: (this: IDBRequest, ev: Event) => any; readonly readyState: string; readonly result: any; source: IDBObjectStore | IDBIndex | IDBCursor; readonly transaction: IDBTransaction; addEventListener(type: K, listener: (this: IDBRequest, ev: IDBRequestEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var IDBRequest: { @@ -631,21 +604,20 @@ interface IDBTransactionEventMap { "complete": Event; "error": Event; } - interface IDBTransaction extends EventTarget { readonly db: IDBDatabase; readonly error: DOMError; readonly mode: string; - onabort: (this: IDBTransaction, ev: Event) => any; - oncomplete: (this: IDBTransaction, ev: Event) => any; - onerror: (this: IDBTransaction, ev: Event) => any; + onabort: (this: IDBTransaction, ev: Event) => any; + oncomplete: (this: IDBTransaction, ev: Event) => any; + onerror: (this: IDBTransaction, ev: Event) => any; abort(): void; objectStore(name: string): IDBObjectStore; readonly READ_ONLY: string; readonly READ_WRITE: string; readonly VERSION_CHANGE: string; addEventListener(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var IDBTransaction: { @@ -655,8 +627,7 @@ declare var IDBTransaction: { readonly READ_WRITE: string; readonly VERSION_CHANGE: string; } - -interface IDBVersionChangeEvent extends Event { +interface IDBVersionChangeEvent extends Event { readonly newVersion: number | null; readonly oldVersion: number; } @@ -665,7 +636,6 @@ declare var IDBVersionChangeEvent: { prototype: IDBVersionChangeEvent; new(): IDBVersionChangeEvent; } - interface ImageData { data: Uint8ClampedArray; readonly height: number; @@ -677,7 +647,6 @@ declare var ImageData: { new(width: number, height: number): ImageData; new(array: Uint8ClampedArray, width: number, height: number): ImageData; } - interface MessageChannel { readonly port1: MessagePort; readonly port2: MessagePort; @@ -687,8 +656,7 @@ declare var MessageChannel: { prototype: MessageChannel; new(): MessageChannel; } - -interface MessageEvent extends Event { +interface MessageEvent extends Event { readonly data: any; readonly origin: string; readonly ports: any; @@ -704,14 +672,13 @@ declare var MessageEvent: { interface MessagePortEventMap { "message": MessageEvent; } - interface MessagePort extends EventTarget { - onmessage: (this: MessagePort, ev: MessageEvent) => any; + onmessage: (this: MessagePort, ev: MessageEvent) => any; close(): void; postMessage(message?: any, transfer?: any[]): void; start(): void; addEventListener(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var MessagePort: { @@ -725,22 +692,21 @@ interface NotificationEventMap { "error": Event; "show": Event; } - interface Notification extends EventTarget { readonly body: string; readonly dir: string; 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; + 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 tag: string; readonly title: string; close(): void; addEventListener(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var Notification: { @@ -748,7 +714,6 @@ declare var Notification: { new(title: string, options?: NotificationOptions): Notification; requestPermission(callback?: NotificationPermissionCallback): Promise; } - interface Performance { readonly navigation: PerformanceNavigation; readonly timing: PerformanceTiming; @@ -771,7 +736,6 @@ declare var Performance: { prototype: Performance; new(): Performance; } - interface PerformanceNavigation { readonly redirectCount: number; readonly type: number; @@ -790,7 +754,6 @@ declare var PerformanceNavigation: { readonly TYPE_RELOAD: number; readonly TYPE_RESERVED: number; } - interface PerformanceTiming { readonly connectEnd: number; readonly connectStart: number; @@ -821,7 +784,6 @@ declare var PerformanceTiming: { prototype: PerformanceTiming; new(): PerformanceTiming; } - interface Position { readonly coords: Coordinates; readonly timestamp: number; @@ -831,7 +793,6 @@ declare var Position: { prototype: Position; new(): Position; } - interface PositionError { readonly code: number; readonly message: string; @@ -848,8 +809,7 @@ declare var PositionError: { readonly POSITION_UNAVAILABLE: number; readonly TIMEOUT: number; } - -interface ProgressEvent extends Event { +interface ProgressEvent extends Event { readonly lengthComputable: boolean; readonly loaded: number; readonly total: number; @@ -860,7 +820,6 @@ declare var ProgressEvent: { prototype: ProgressEvent; new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent; } - interface PushManager { getSubscription(): Promise; permissionState(options?: PushSubscriptionOptionsInit): Promise; @@ -871,7 +830,6 @@ declare var PushManager: { prototype: PushManager; new(): PushManager; } - interface PushSubscription { readonly endpoint: USVString; readonly options: PushSubscriptionOptions; @@ -884,7 +842,6 @@ declare var PushSubscription: { prototype: PushSubscription; new(): PushSubscription; } - interface PushSubscriptionOptions { readonly applicationServerKey: ArrayBuffer | null; readonly userVisibleOnly: boolean; @@ -894,7 +851,6 @@ declare var PushSubscriptionOptions: { prototype: PushSubscriptionOptions; new(): PushSubscriptionOptions; } - interface ReadableStream { readonly locked: boolean; cancel(): Promise; @@ -905,7 +861,6 @@ declare var ReadableStream: { prototype: ReadableStream; new(): ReadableStream; } - interface ReadableStreamReader { cancel(): Promise; read(): Promise; @@ -916,7 +871,6 @@ declare var ReadableStreamReader: { prototype: ReadableStreamReader; new(): ReadableStreamReader; } - interface Request extends Object, Body { readonly cache: string; readonly credentials: string; @@ -938,7 +892,6 @@ declare var Request: { prototype: Request; new(input: Request | string, init?: RequestInit): Request; } - interface Response extends Object, Body { readonly body: ReadableStream | null; readonly headers: Headers; @@ -958,14 +911,13 @@ declare var Response: { interface ServiceWorkerEventMap extends AbstractWorkerEventMap { "statechange": Event; } - -interface ServiceWorker extends EventTarget, AbstractWorker { - onstatechange: (this: ServiceWorker, ev: Event) => any; +interface ServiceWorker extends EventTarget, AbstractWorker { + onstatechange: (this: ServiceWorker, ev: Event) => any; readonly scriptURL: USVString; readonly state: string; postMessage(message: any, transfer?: any[]): void; addEventListener(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var ServiceWorker: { @@ -976,11 +928,10 @@ declare var ServiceWorker: { interface ServiceWorkerRegistrationEventMap { "updatefound": Event; } - interface ServiceWorkerRegistration extends EventTarget { readonly active: ServiceWorker | null; readonly installing: ServiceWorker | null; - onupdatefound: (this: ServiceWorkerRegistration, ev: Event) => any; + onupdatefound: (this: ServiceWorkerRegistration, ev: Event) => any; readonly pushManager: PushManager; readonly scope: USVString; readonly sync: SyncManager; @@ -990,14 +941,13 @@ interface ServiceWorkerRegistration extends EventTarget { unregister(): Promise; update(): Promise; addEventListener(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var ServiceWorkerRegistration: { prototype: ServiceWorkerRegistration; new(): ServiceWorkerRegistration; } - interface SyncManager { getTags(): any; register(tag: string): Promise; @@ -1007,6 +957,43 @@ declare var SyncManager: { prototype: SyncManager; new(): SyncManager; } +interface WebKitDirectoryEntry extends WebKitEntry { + createReader(): WebKitDirectoryReader; +} + +declare var WebKitDirectoryEntry: { + prototype: WebKitDirectoryEntry; + new(): WebKitDirectoryEntry; +} +interface WebKitDirectoryReader { + readEntries(successCallback: WebKitEntriesCallback, errorCallback?: WebKitErrorCallback): void; +} + +declare var WebKitDirectoryReader: { + prototype: WebKitDirectoryReader; + new(): WebKitDirectoryReader; +} +interface WebKitEntry { + readonly filesystem: WebKitFileSystem; + readonly fullPath: string; + readonly isDirectory: boolean; + readonly isFile: boolean; + readonly name: string; +} + +declare var WebKitEntry: { + prototype: WebKitEntry; + new(): WebKitEntry; +} +interface WebKitFileSystem { + readonly name: string; + readonly root: WebKitDirectoryEntry; +} + +declare var WebKitFileSystem: { + prototype: WebKitFileSystem; + new(): WebKitFileSystem; +} interface WebSocketEventMap { "close": CloseEvent; @@ -1014,15 +1001,14 @@ interface WebSocketEventMap { "message": MessageEvent; "open": Event; } - interface WebSocket extends EventTarget { binaryType: string; readonly bufferedAmount: number; readonly extensions: string; - onclose: (this: WebSocket, ev: CloseEvent) => any; - onerror: (this: WebSocket, ev: Event) => any; - onmessage: (this: WebSocket, ev: MessageEvent) => any; - onopen: (this: WebSocket, ev: Event) => any; + onclose: (this: WebSocket, ev: CloseEvent) => any; + onerror: (this: WebSocket, ev: Event) => any; + onmessage: (this: WebSocket, ev: MessageEvent) => any; + onopen: (this: WebSocket, ev: Event) => any; readonly protocol: string; readonly readyState: number; readonly url: string; @@ -1033,7 +1019,7 @@ interface WebSocket extends EventTarget { readonly CONNECTING: number; readonly OPEN: number; addEventListener(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var WebSocket: { @@ -1048,13 +1034,12 @@ declare var WebSocket: { interface WorkerEventMap extends AbstractWorkerEventMap { "message": MessageEvent; } - -interface Worker extends EventTarget, AbstractWorker { - onmessage: (this: Worker, ev: MessageEvent) => any; +interface Worker extends EventTarget, AbstractWorker { + onmessage: (this: Worker, ev: MessageEvent) => any; postMessage(message: any, transfer?: any[]): void; terminate(): void; addEventListener(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var Worker: { @@ -1065,9 +1050,8 @@ declare var Worker: { interface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap { "readystatechange": Event; } - -interface XMLHttpRequest extends EventTarget, XMLHttpRequestEventTarget { - onreadystatechange: (this: XMLHttpRequest, ev: Event) => any; +interface XMLHttpRequest extends EventTarget, XMLHttpRequestEventTarget { + onreadystatechange: (this: XMLHttpRequest, ev: Event) => any; readonly readyState: number; readonly response: any; readonly responseText: string; @@ -1095,7 +1079,7 @@ interface XMLHttpRequest extends EventTarget, XMLHttpRequestEventTarget { readonly OPENED: number; readonly UNSENT: number; addEventListener(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var XMLHttpRequest: { @@ -1107,10 +1091,9 @@ declare var XMLHttpRequest: { readonly OPENED: number; readonly UNSENT: number; } - -interface XMLHttpRequestUpload extends EventTarget, XMLHttpRequestEventTarget { +interface XMLHttpRequestUpload extends EventTarget, XMLHttpRequestEventTarget { addEventListener(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var XMLHttpRequestUpload: { @@ -1121,13 +1104,9 @@ declare var XMLHttpRequestUpload: { interface AbstractWorkerEventMap { "error": ErrorEvent; } - -interface AbstractWorker { - onerror: (this: AbstractWorker, ev: ErrorEvent) => any; - addEventListener(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +interface AbstractWorker { + onerror: (this: AbstractWorker, ev: ErrorEvent) => any; } - interface Body { readonly bodyUsed: boolean; arrayBuffer(): Promise; @@ -1135,7 +1114,6 @@ interface Body { json(): Promise; text(): Promise; } - interface GlobalFetch { fetch(input: RequestInfo, init?: RequestInit): Promise; } @@ -1148,32 +1126,26 @@ interface MSBaseReaderEventMap { "loadstart": Event; "progress": ProgressEvent; } - -interface MSBaseReader { - onabort: (this: MSBaseReader, ev: Event) => any; - onerror: (this: MSBaseReader, ev: ErrorEvent) => any; - onload: (this: MSBaseReader, ev: Event) => any; - onloadend: (this: MSBaseReader, ev: ProgressEvent) => any; - onloadstart: (this: MSBaseReader, ev: Event) => any; - onprogress: (this: MSBaseReader, ev: ProgressEvent) => any; +interface MSBaseReader { + onabort: (this: MSBaseReader, ev: Event) => any; + onerror: (this: MSBaseReader, ev: ErrorEvent) => any; + onload: (this: MSBaseReader, ev: Event) => any; + onloadend: (this: MSBaseReader, ev: ProgressEvent) => any; + onloadstart: (this: MSBaseReader, ev: Event) => any; + onprogress: (this: MSBaseReader, ev: ProgressEvent) => any; readonly readyState: number; readonly result: any; abort(): void; readonly DONE: number; readonly EMPTY: number; readonly LOADING: number; - addEventListener(type: K, listener: (this: MSBaseReader, ev: MSBaseReaderEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } - interface NavigatorBeacon { sendBeacon(url: USVString, data?: BodyInit): boolean; } - interface NavigatorConcurrentHardware { readonly hardwareConcurrency: number; } - interface NavigatorID { readonly appCodeName: string; readonly appName: string; @@ -1185,16 +1157,13 @@ interface NavigatorID { readonly vendor: string; readonly vendorSub: string; } - interface NavigatorOnLine { readonly onLine: boolean; } - interface WindowBase64 { atob(encodedString: string): string; btoa(rawString: string): string; } - interface WindowConsole { readonly console: Console; } @@ -1208,19 +1177,15 @@ interface XMLHttpRequestEventTargetEventMap { "progress": ProgressEvent; "timeout": ProgressEvent; } - -interface XMLHttpRequestEventTarget { - onabort: (this: XMLHttpRequestEventTarget, ev: Event) => any; - onerror: (this: XMLHttpRequestEventTarget, ev: ErrorEvent) => any; - onload: (this: XMLHttpRequestEventTarget, ev: Event) => any; - onloadend: (this: XMLHttpRequestEventTarget, ev: ProgressEvent) => any; - onloadstart: (this: XMLHttpRequestEventTarget, ev: Event) => any; - onprogress: (this: XMLHttpRequestEventTarget, ev: ProgressEvent) => any; - ontimeout: (this: XMLHttpRequestEventTarget, ev: ProgressEvent) => any; - addEventListener(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +interface XMLHttpRequestEventTarget { + onabort: (this: XMLHttpRequestEventTarget, ev: Event) => any; + onerror: (this: XMLHttpRequestEventTarget, ev: ErrorEvent) => any; + onload: (this: XMLHttpRequestEventTarget, ev: Event) => any; + onloadend: (this: XMLHttpRequestEventTarget, ev: ProgressEvent) => any; + onloadstart: (this: XMLHttpRequestEventTarget, ev: Event) => any; + onprogress: (this: XMLHttpRequestEventTarget, ev: ProgressEvent) => any; + ontimeout: (this: XMLHttpRequestEventTarget, ev: ProgressEvent) => any; } - interface Client { readonly frameType: string; readonly id: string; @@ -1232,7 +1197,6 @@ declare var Client: { prototype: Client; new(): Client; } - interface Clients { claim(): Promise; get(id: string): Promise; @@ -1248,21 +1212,19 @@ declare var Clients: { interface DedicatedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap { "message": MessageEvent; } - interface DedicatedWorkerGlobalScope extends WorkerGlobalScope { - onmessage: (this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any; + onmessage: (this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any; close(): void; postMessage(message: any, transfer?: any[]): void; addEventListener(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var DedicatedWorkerGlobalScope: { prototype: DedicatedWorkerGlobalScope; new(): DedicatedWorkerGlobalScope; } - -interface ExtendableEvent extends Event { +interface ExtendableEvent extends Event { waitUntil(f: Promise): void; } @@ -1270,8 +1232,7 @@ declare var ExtendableEvent: { prototype: ExtendableEvent; new(type: string, eventInitDict?: ExtendableEventInit): ExtendableEvent; } - -interface ExtendableMessageEvent extends ExtendableEvent { +interface ExtendableMessageEvent extends ExtendableEvent { readonly data: any; readonly lastEventId: string; readonly origin: string; @@ -1283,8 +1244,7 @@ declare var ExtendableMessageEvent: { prototype: ExtendableMessageEvent; new(type: string, eventInitDict?: ExtendableMessageEventInit): ExtendableMessageEvent; } - -interface FetchEvent extends ExtendableEvent { +interface FetchEvent extends ExtendableEvent { readonly clientId: string | null; readonly isReload: boolean; readonly request: Request; @@ -1295,7 +1255,6 @@ declare var FetchEvent: { prototype: FetchEvent; new(type: string, eventInitDict: FetchEventInit): FetchEvent; } - interface FileReaderSync { readAsArrayBuffer(blob: Blob): any; readAsBinaryString(blob: Blob): void; @@ -1307,8 +1266,7 @@ declare var FileReaderSync: { prototype: FileReaderSync; new(): FileReaderSync; } - -interface NotificationEvent extends ExtendableEvent { +interface NotificationEvent extends ExtendableEvent { readonly action: string; readonly notification: Notification; } @@ -1317,8 +1275,7 @@ declare var NotificationEvent: { prototype: NotificationEvent; new(type: string, eventInitDict: NotificationEventInit): NotificationEvent; } - -interface PushEvent extends ExtendableEvent { +interface PushEvent extends ExtendableEvent { readonly data: PushMessageData | null; } @@ -1326,7 +1283,6 @@ declare var PushEvent: { prototype: PushEvent; new(type: string, eventInitDict?: PushEventInit): PushEvent; } - interface PushMessageData { arrayBuffer(): ArrayBuffer; blob(): Blob; @@ -1350,30 +1306,28 @@ interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap { "pushsubscriptionchange": ExtendableEvent; "sync": SyncEvent; } - interface ServiceWorkerGlobalScope extends WorkerGlobalScope { readonly clients: Clients; - onactivate: (this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any; - onfetch: (this: ServiceWorkerGlobalScope, ev: FetchEvent) => any; - oninstall: (this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any; - onmessage: (this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any; - onnotificationclick: (this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any; - onnotificationclose: (this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any; - onpush: (this: ServiceWorkerGlobalScope, ev: PushEvent) => any; - onpushsubscriptionchange: (this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any; - onsync: (this: ServiceWorkerGlobalScope, ev: SyncEvent) => any; + onactivate: (this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any; + onfetch: (this: ServiceWorkerGlobalScope, ev: FetchEvent) => any; + oninstall: (this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any; + onmessage: (this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any; + onnotificationclick: (this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any; + onnotificationclose: (this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any; + onpush: (this: ServiceWorkerGlobalScope, ev: PushEvent) => any; + onpushsubscriptionchange: (this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any; + onsync: (this: ServiceWorkerGlobalScope, ev: SyncEvent) => any; readonly registration: ServiceWorkerRegistration; skipWaiting(): Promise; addEventListener(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var ServiceWorkerGlobalScope: { prototype: ServiceWorkerGlobalScope; new(): ServiceWorkerGlobalScope; } - -interface SyncEvent extends ExtendableEvent { +interface SyncEvent extends ExtendableEvent { readonly lastChance: boolean; readonly tag: string; } @@ -1382,7 +1336,6 @@ declare var SyncEvent: { prototype: SyncEvent; new(type: string, init: SyncEventInit): SyncEvent; } - interface WindowClient extends Client { readonly focused: boolean; readonly visibilityState: string; @@ -1398,24 +1351,22 @@ declare var WindowClient: { interface WorkerGlobalScopeEventMap { "error": ErrorEvent; } - interface WorkerGlobalScope extends EventTarget, WorkerUtils, WindowConsole, GlobalFetch { readonly caches: CacheStorage; readonly isSecureContext: boolean; readonly location: WorkerLocation; - onerror: (this: WorkerGlobalScope, ev: ErrorEvent) => any; + onerror: (this: WorkerGlobalScope, ev: ErrorEvent) => any; readonly performance: Performance; readonly self: WorkerGlobalScope; msWriteProfilerMark(profilerMarkName: string): void; addEventListener(type: K, listener: (this: WorkerGlobalScope, ev: WorkerGlobalScopeEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var WorkerGlobalScope: { prototype: WorkerGlobalScope; new(): WorkerGlobalScope; } - interface WorkerLocation { readonly hash: string; readonly host: string; @@ -1433,7 +1384,6 @@ declare var WorkerLocation: { prototype: WorkerLocation; new(): WorkerLocation; } - interface WorkerNavigator extends Object, NavigatorID, NavigatorOnLine, NavigatorBeacon, NavigatorConcurrentHardware { readonly hardwareConcurrency: number; } @@ -1442,7 +1392,6 @@ declare var WorkerNavigator: { prototype: WorkerNavigator; new(): WorkerNavigator; } - interface WorkerUtils extends Object, WindowBase64 { readonly indexedDB: IDBFactory; readonly msIndexedDB: IDBFactory; @@ -1477,8 +1426,8 @@ interface FilePropertyBag { lastModified?: number; } -interface EventListenerObject { - handleEvent(evt: Event): void; +interface EventListenerObject { + handleEvent(evt: Event): void; } interface ProgressEventInit extends EventInit { @@ -1661,7 +1610,7 @@ interface JsonWebKey { k?: string; } -declare type EventListenerOrEventListenerObject = EventListener | EventListenerObject; +declare type EventListenerOrEventListenerObject = EventListener | EventListenerObject; interface ErrorEventHandler { (message: string, filename?: string, lineno?: number, colno?: number, error?:Error): void; @@ -1687,18 +1636,18 @@ interface ForEachCallback { interface NotificationPermissionCallback { (permission: string): void; } -declare var onmessage: (this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any; +declare var onmessage: (this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any; declare function close(): void; declare function postMessage(message: any, transfer?: any[]): void; declare var caches: CacheStorage; declare var isSecureContext: boolean; declare var location: WorkerLocation; -declare var onerror: (this: DedicatedWorkerGlobalScope, ev: ErrorEvent) => any; +declare var onerror: (this: DedicatedWorkerGlobalScope, ev: ErrorEvent) => any; declare var performance: Performance; declare var self: WorkerGlobalScope; declare function msWriteProfilerMark(profilerMarkName: string): void; declare function dispatchEvent(evt: Event): boolean; -declare function removeEventListener(type: string, listener?: EventListenerOrEventListenerObject, useCapture?: boolean): void; +declare function removeEventListener(type: string, listener?: EventListenerOrEventListenerObject, useCapture?: boolean): void; declare var indexedDB: IDBFactory; declare var msIndexedDB: IDBFactory; declare var navigator: WorkerNavigator; @@ -1717,9 +1666,9 @@ declare function btoa(rawString: string): string; declare var console: Console; declare function fetch(input: RequestInfo, init?: RequestInit): Promise; declare function dispatchEvent(evt: Event): boolean; -declare function removeEventListener(type: string, listener?: EventListenerOrEventListenerObject, useCapture?: boolean): void; +declare function removeEventListener(type: string, listener?: EventListenerOrEventListenerObject, useCapture?: boolean): void; declare function addEventListener(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, useCapture?: boolean): void; -declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; type AlgorithmIdentifier = string | Algorithm; type BodyInit = any; type IDBKeyPath = string; From 35b5be8b55c2003bcbb39b27750ed51b69de3a5d Mon Sep 17 00:00:00 2001 From: zhengbli Date: Wed, 1 Mar 2017 12:16:43 -0800 Subject: [PATCH 07/10] Add missing new lines --- TS.fsx | 4 +- baselines/dom.generated.d.ts | 566 +++++++++++++++++++++++++++++ baselines/webworker.generated.d.ts | 86 +++++ 3 files changed, 654 insertions(+), 2 deletions(-) diff --git a/TS.fsx b/TS.fsx index 4329a2288..6196f302b 100644 --- a/TS.fsx +++ b/TS.fsx @@ -1163,9 +1163,9 @@ module Emit = let baseTypeName = generateBaseTypeNameIfNecessary i.Name if baseTypeName <> i.Name then Pt.PrintlToStack "interface %s extends %s {" i.Name baseTypeName - Pt.Print "interface %s" baseTypeName + Pt.Printl "interface %s" baseTypeName else - Pt.Print "interface %s" i.Name + Pt.Printl "interface %s" i.Name let finalExtends = let overridenExtendsFromJson = diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index 0e6f17618..be6c12a4a 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -1182,6 +1182,7 @@ interface WebKitErrorCallback { interface WebKitFileCallback { (file: File): void; } + interface ANGLE_instanced_arrays { drawArraysInstancedANGLE(mode: number, first: number, count: number, primcount: number): void; drawElementsInstancedANGLE(mode: number, count: number, type: number, offset: number, primcount: number): void; @@ -1194,6 +1195,7 @@ declare var ANGLE_instanced_arrays: { new(): ANGLE_instanced_arrays; readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: number; } + interface AnalyserNode extends AudioNode { fftSize: number; readonly frequencyBinCount: number; @@ -1210,6 +1212,7 @@ declare var AnalyserNode: { prototype: AnalyserNode; new(): AnalyserNode; } + interface AnimationEvent extends Event { readonly animationName: string; readonly elapsedTime: number; @@ -1231,6 +1234,7 @@ interface ApplicationCacheEventMap { "progress": ProgressEvent; "updateready": Event; } + interface ApplicationCache extends EventTarget { oncached: (this: ApplicationCache, ev: Event) => any; onchecking: (this: ApplicationCache, ev: Event) => any; @@ -1264,6 +1268,7 @@ declare var ApplicationCache: { readonly UNCACHED: number; readonly UPDATEREADY: number; } + interface Attr extends Node { readonly name: string; readonly ownerElement: Element; @@ -1276,6 +1281,7 @@ declare var Attr: { prototype: Attr; new(): Attr; } + interface AudioBuffer { readonly duration: number; readonly length: number; @@ -1294,6 +1300,7 @@ declare var AudioBuffer: { interface AudioBufferSourceNodeEventMap { "ended": MediaStreamErrorEvent; } + interface AudioBufferSourceNode extends AudioNode { buffer: AudioBuffer | null; readonly detune: AudioParam; @@ -1316,6 +1323,7 @@ declare var AudioBufferSourceNode: { interface AudioContextEventMap { "statechange": Event; } + interface AudioContextBase extends EventTarget { readonly currentTime: number; readonly destination: AudioDestinationNode; @@ -1357,6 +1365,7 @@ declare var AudioContext: { prototype: AudioContext; new(): AudioContext; } + interface AudioDestinationNode extends AudioNode { readonly maxChannelCount: number; } @@ -1365,6 +1374,7 @@ declare var AudioDestinationNode: { prototype: AudioDestinationNode; new(): AudioDestinationNode; } + interface AudioListener { dopplerFactor: number; speedOfSound: number; @@ -1377,6 +1387,7 @@ declare var AudioListener: { prototype: AudioListener; new(): AudioListener; } + interface AudioNode extends EventTarget { channelCount: number; channelCountMode: string; @@ -1395,6 +1406,7 @@ declare var AudioNode: { prototype: AudioNode; new(): AudioNode; } + interface AudioParam { readonly defaultValue: number; value: number; @@ -1410,6 +1422,7 @@ declare var AudioParam: { prototype: AudioParam; new(): AudioParam; } + interface AudioProcessingEvent extends Event { readonly inputBuffer: AudioBuffer; readonly outputBuffer: AudioBuffer; @@ -1420,6 +1433,7 @@ declare var AudioProcessingEvent: { prototype: AudioProcessingEvent; new(): AudioProcessingEvent; } + interface AudioTrack { enabled: boolean; readonly id: string; @@ -1439,6 +1453,7 @@ interface AudioTrackListEventMap { "change": Event; "removetrack": TrackEvent; } + interface AudioTrackList extends EventTarget { readonly length: number; onaddtrack: (this: AudioTrackList, ev: TrackEvent) => any; @@ -1455,6 +1470,7 @@ declare var AudioTrackList: { prototype: AudioTrackList; new(): AudioTrackList; } + interface BarProp { readonly visible: boolean; } @@ -1463,6 +1479,7 @@ declare var BarProp: { prototype: BarProp; new(): BarProp; } + interface BeforeUnloadEvent extends Event { returnValue: any; } @@ -1471,6 +1488,7 @@ declare var BeforeUnloadEvent: { prototype: BeforeUnloadEvent; new(): BeforeUnloadEvent; } + interface BiquadFilterNode extends AudioNode { readonly Q: AudioParam; readonly detune: AudioParam; @@ -1484,6 +1502,7 @@ declare var BiquadFilterNode: { prototype: BiquadFilterNode; new(): BiquadFilterNode; } + interface Blob { readonly size: number; readonly type: string; @@ -1496,6 +1515,7 @@ declare var Blob: { prototype: Blob; new (blobParts?: any[], options?: BlobPropertyBag): Blob; } + interface CDATASection extends Text { } @@ -1503,10 +1523,12 @@ declare var CDATASection: { prototype: CDATASection; new(): CDATASection; } + interface CSS { supports(property: string, value?: string): boolean; } declare var CSS: CSS; + interface CSSConditionRule extends CSSGroupingRule { conditionText: string; } @@ -1515,6 +1537,7 @@ declare var CSSConditionRule: { prototype: CSSConditionRule; new(): CSSConditionRule; } + interface CSSFontFaceRule extends CSSRule { readonly style: CSSStyleDeclaration; } @@ -1523,6 +1546,7 @@ declare var CSSFontFaceRule: { prototype: CSSFontFaceRule; new(): CSSFontFaceRule; } + interface CSSGroupingRule extends CSSRule { readonly cssRules: CSSRuleList; deleteRule(index: number): void; @@ -1533,6 +1557,7 @@ declare var CSSGroupingRule: { prototype: CSSGroupingRule; new(): CSSGroupingRule; } + interface CSSImportRule extends CSSRule { readonly href: string; readonly media: MediaList; @@ -1543,6 +1568,7 @@ declare var CSSImportRule: { prototype: CSSImportRule; new(): CSSImportRule; } + interface CSSKeyframeRule extends CSSRule { keyText: string; readonly style: CSSStyleDeclaration; @@ -1552,6 +1578,7 @@ declare var CSSKeyframeRule: { prototype: CSSKeyframeRule; new(): CSSKeyframeRule; } + interface CSSKeyframesRule extends CSSRule { readonly cssRules: CSSRuleList; name: string; @@ -1564,6 +1591,7 @@ declare var CSSKeyframesRule: { prototype: CSSKeyframesRule; new(): CSSKeyframesRule; } + interface CSSMediaRule extends CSSConditionRule { readonly media: MediaList; } @@ -1572,6 +1600,7 @@ declare var CSSMediaRule: { prototype: CSSMediaRule; new(): CSSMediaRule; } + interface CSSNamespaceRule extends CSSRule { readonly namespaceURI: string; readonly prefix: string; @@ -1581,6 +1610,7 @@ declare var CSSNamespaceRule: { prototype: CSSNamespaceRule; new(): CSSNamespaceRule; } + interface CSSPageRule extends CSSRule { readonly pseudoClass: string; readonly selector: string; @@ -1592,6 +1622,7 @@ declare var CSSPageRule: { prototype: CSSPageRule; new(): CSSPageRule; } + interface CSSRule { cssText: string; readonly parentRule: CSSRule; @@ -1627,6 +1658,7 @@ declare var CSSRule: { readonly UNKNOWN_RULE: number; readonly VIEWPORT_RULE: number; } + interface CSSRuleList { readonly length: number; item(index: number): CSSRule; @@ -1637,6 +1669,7 @@ declare var CSSRuleList: { prototype: CSSRuleList; new(): CSSRuleList; } + interface CSSStyleDeclaration { alignContent: string | null; alignItems: string | null; @@ -1997,6 +2030,7 @@ declare var CSSStyleDeclaration: { prototype: CSSStyleDeclaration; new(): CSSStyleDeclaration; } + interface CSSStyleRule extends CSSRule { readonly readOnly: boolean; selectorText: string; @@ -2007,6 +2041,7 @@ declare var CSSStyleRule: { prototype: CSSStyleRule; new(): CSSStyleRule; } + interface CSSStyleSheet extends StyleSheet { readonly cssRules: CSSRuleList; cssText: string; @@ -2032,6 +2067,7 @@ declare var CSSStyleSheet: { prototype: CSSStyleSheet; new(): CSSStyleSheet; } + interface CSSSupportsRule extends CSSConditionRule { } @@ -2039,6 +2075,7 @@ declare var CSSSupportsRule: { prototype: CSSSupportsRule; new(): CSSSupportsRule; } + interface Cache { add(request: RequestInfo): Promise; addAll(requests: RequestInfo[]): Promise; @@ -2053,6 +2090,7 @@ declare var Cache: { prototype: Cache; new(): Cache; } + interface CacheStorage { delete(cacheName: string): Promise; has(cacheName: string): Promise; @@ -2065,6 +2103,7 @@ declare var CacheStorage: { prototype: CacheStorage; new(): CacheStorage; } + interface CanvasGradient { addColorStop(offset: number, color: string): void; } @@ -2073,6 +2112,7 @@ declare var CanvasGradient: { prototype: CanvasGradient; new(): CanvasGradient; } + interface CanvasPattern { setTransform(matrix: SVGMatrix): void; } @@ -2081,6 +2121,7 @@ declare var CanvasPattern: { prototype: CanvasPattern; new(): CanvasPattern; } + interface CanvasRenderingContext2D extends Object, CanvasPathMethods { readonly canvas: HTMLCanvasElement; fillStyle: string | CanvasGradient | CanvasPattern; @@ -2138,6 +2179,7 @@ declare var CanvasRenderingContext2D: { prototype: CanvasRenderingContext2D; new(): CanvasRenderingContext2D; } + interface ChannelMergerNode extends AudioNode { } @@ -2145,6 +2187,7 @@ declare var ChannelMergerNode: { prototype: ChannelMergerNode; new(): ChannelMergerNode; } + interface ChannelSplitterNode extends AudioNode { } @@ -2152,6 +2195,7 @@ declare var ChannelSplitterNode: { prototype: ChannelSplitterNode; new(): ChannelSplitterNode; } + interface CharacterData extends Node, ChildNode { data: string; readonly length: number; @@ -2166,6 +2210,7 @@ declare var CharacterData: { prototype: CharacterData; new(): CharacterData; } + interface ClientRect { bottom: number; readonly height: number; @@ -2179,6 +2224,7 @@ declare var ClientRect: { prototype: ClientRect; new(): ClientRect; } + interface ClientRectList { readonly length: number; item(index: number): ClientRect; @@ -2189,6 +2235,7 @@ declare var ClientRectList: { prototype: ClientRectList; new(): ClientRectList; } + interface ClipboardEvent extends Event { readonly clipboardData: DataTransfer; } @@ -2197,6 +2244,7 @@ declare var ClipboardEvent: { prototype: ClipboardEvent; new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent; } + interface CloseEvent extends Event { readonly code: number; readonly reason: string; @@ -2208,6 +2256,7 @@ declare var CloseEvent: { prototype: CloseEvent; new(typeArg: string, eventInitDict?: CloseEventInit): CloseEvent; } + interface Comment extends CharacterData { text: string; } @@ -2216,6 +2265,7 @@ declare var Comment: { prototype: Comment; new(): Comment; } + interface CompositionEvent extends UIEvent { readonly data: string; readonly locale: string; @@ -2226,6 +2276,7 @@ declare var CompositionEvent: { prototype: CompositionEvent; new(typeArg: string, eventInitDict?: CompositionEventInit): CompositionEvent; } + interface Console { assert(test?: boolean, message?: string, ...optionalParams: any[]): void; clear(): void; @@ -2255,6 +2306,7 @@ declare var Console: { prototype: Console; new(): Console; } + interface ConvolverNode extends AudioNode { buffer: AudioBuffer | null; normalize: boolean; @@ -2264,6 +2316,7 @@ declare var ConvolverNode: { prototype: ConvolverNode; new(): ConvolverNode; } + interface Coordinates { readonly accuracy: number; readonly altitude: number | null; @@ -2278,6 +2331,7 @@ declare var Coordinates: { prototype: Coordinates; new(): Coordinates; } + interface Crypto extends Object, RandomSource { readonly subtle: SubtleCrypto; } @@ -2286,6 +2340,7 @@ declare var Crypto: { prototype: Crypto; new(): Crypto; } + interface CryptoKey { readonly algorithm: KeyAlgorithm; readonly extractable: boolean; @@ -2297,6 +2352,7 @@ declare var CryptoKey: { prototype: CryptoKey; new(): CryptoKey; } + interface CryptoKeyPair { privateKey: CryptoKey; publicKey: CryptoKey; @@ -2306,6 +2362,7 @@ declare var CryptoKeyPair: { prototype: CryptoKeyPair; new(): CryptoKeyPair; } + interface CustomEvent extends Event { readonly detail: any; initCustomEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, detailArg: any): void; @@ -2315,6 +2372,7 @@ declare var CustomEvent: { prototype: CustomEvent; new(typeArg: string, eventInitDict?: CustomEventInit): CustomEvent; } + interface DOMError { readonly name: string; toString(): string; @@ -2324,6 +2382,7 @@ declare var DOMError: { prototype: DOMError; new(): DOMError; } + interface DOMException { readonly code: number; readonly message: string; @@ -2389,6 +2448,7 @@ declare var DOMException: { readonly VALIDATION_ERR: number; readonly WRONG_DOCUMENT_ERR: number; } + interface DOMImplementation { createDocument(namespaceURI: string | null, qualifiedName: string | null, doctype: DocumentType | null): Document; createDocumentType(qualifiedName: string, publicId: string, systemId: string): DocumentType; @@ -2400,6 +2460,7 @@ declare var DOMImplementation: { prototype: DOMImplementation; new(): DOMImplementation; } + interface DOMParser { parseFromString(source: string, mimeType: string): Document; } @@ -2408,6 +2469,7 @@ declare var DOMParser: { prototype: DOMParser; new(): DOMParser; } + interface DOMSettableTokenList extends DOMTokenList { value: string; } @@ -2416,6 +2478,7 @@ declare var DOMSettableTokenList: { prototype: DOMSettableTokenList; new(): DOMSettableTokenList; } + interface DOMStringList { readonly length: number; contains(str: string): boolean; @@ -2427,6 +2490,7 @@ declare var DOMStringList: { prototype: DOMStringList; new(): DOMStringList; } + interface DOMStringMap { [name: string]: string | undefined; } @@ -2435,6 +2499,7 @@ declare var DOMStringMap: { prototype: DOMStringMap; new(): DOMStringMap; } + interface DOMTokenList { readonly length: number; add(...token: string[]): void; @@ -2450,6 +2515,7 @@ declare var DOMTokenList: { prototype: DOMTokenList; new(): DOMTokenList; } + interface DataCue extends TextTrackCue { data: ArrayBuffer; addEventListener(type: K, listener: (this: DataCue, ev: TextTrackCueEventMap[K]) => any, useCapture?: boolean): void; @@ -2460,6 +2526,7 @@ declare var DataCue: { prototype: DataCue; new(): DataCue; } + interface DataTransfer { dropEffect: string; effectAllowed: string; @@ -2475,6 +2542,7 @@ declare var DataTransfer: { prototype: DataTransfer; new(): DataTransfer; } + interface DataTransferItem { readonly kind: string; readonly type: string; @@ -2487,6 +2555,7 @@ declare var DataTransferItem: { prototype: DataTransferItem; new(): DataTransferItem; } + interface DataTransferItemList { readonly length: number; add(data: File): DataTransferItem | null; @@ -2500,6 +2569,7 @@ declare var DataTransferItemList: { prototype: DataTransferItemList; new(): DataTransferItemList; } + interface DeferredPermissionRequest { readonly id: number; readonly type: string; @@ -2512,6 +2582,7 @@ declare var DeferredPermissionRequest: { prototype: DeferredPermissionRequest; new(): DeferredPermissionRequest; } + interface DelayNode extends AudioNode { readonly delayTime: AudioParam; } @@ -2520,6 +2591,7 @@ declare var DelayNode: { prototype: DelayNode; new(): DelayNode; } + interface DeviceAcceleration { readonly x: number | null; readonly y: number | null; @@ -2530,6 +2602,7 @@ declare var DeviceAcceleration: { prototype: DeviceAcceleration; new(): DeviceAcceleration; } + interface DeviceLightEvent extends Event { readonly value: number; } @@ -2538,6 +2611,7 @@ declare var DeviceLightEvent: { prototype: DeviceLightEvent; new(typeArg: string, eventInitDict?: DeviceLightEventInit): DeviceLightEvent; } + interface DeviceMotionEvent extends Event { readonly acceleration: DeviceAcceleration | null; readonly accelerationIncludingGravity: DeviceAcceleration | null; @@ -2550,6 +2624,7 @@ declare var DeviceMotionEvent: { prototype: DeviceMotionEvent; new(typeArg: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent; } + interface DeviceOrientationEvent extends Event { readonly absolute: boolean; readonly alpha: number | null; @@ -2562,6 +2637,7 @@ declare var DeviceOrientationEvent: { prototype: DeviceOrientationEvent; new(typeArg: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent; } + interface DeviceRotationRate { readonly alpha: number | null; readonly beta: number | null; @@ -2663,6 +2739,7 @@ interface DocumentEventMap extends GlobalEventHandlersEventMap { "webkitfullscreenchange": Event; "webkitfullscreenerror": Event; } + interface Document extends Node, GlobalEventHandlers, NodeSelector, DocumentEvent, ParentNode, DocumentOrShadowRoot { /** * Sets or gets the URL for the current document. @@ -3371,6 +3448,7 @@ declare var Document: { prototype: Document; new(): Document; } + interface DocumentFragment extends Node, NodeSelector, ParentNode { } @@ -3378,6 +3456,7 @@ declare var DocumentFragment: { prototype: DocumentFragment; new(): DocumentFragment; } + interface DocumentType extends Node, ChildNode { readonly entities: NamedNodeMap; readonly internalSubset: string | null; @@ -3391,6 +3470,7 @@ declare var DocumentType: { prototype: DocumentType; new(): DocumentType; } + interface DragEvent extends MouseEvent { readonly dataTransfer: DataTransfer; initDragEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: EventTarget, dataTransferArg: DataTransfer): void; @@ -3401,6 +3481,7 @@ declare var DragEvent: { prototype: DragEvent; new(): DragEvent; } + interface DynamicsCompressorNode extends AudioNode { readonly attack: AudioParam; readonly knee: AudioParam; @@ -3414,6 +3495,7 @@ declare var DynamicsCompressorNode: { prototype: DynamicsCompressorNode; new(): DynamicsCompressorNode; } + interface EXT_frag_depth { } @@ -3421,6 +3503,7 @@ declare var EXT_frag_depth: { prototype: EXT_frag_depth; new(): EXT_frag_depth; } + interface EXT_texture_filter_anisotropic { readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: number; readonly TEXTURE_MAX_ANISOTROPY_EXT: number; @@ -3462,6 +3545,7 @@ interface ElementEventMap extends GlobalEventHandlersEventMap { "webkitfullscreenchange": Event; "webkitfullscreenerror": Event; } + interface Element extends Node, GlobalEventHandlers, ElementTraversal, NodeSelector, ChildNode, ParentNode { readonly classList: DOMTokenList; className: string; @@ -3565,6 +3649,7 @@ declare var Element: { prototype: Element; new(): Element; } + interface ErrorEvent extends Event { readonly colno: number; readonly error: any; @@ -3578,6 +3663,7 @@ declare var ErrorEvent: { prototype: ErrorEvent; new(type: string, errorEventInitDict?: ErrorEventInit): ErrorEvent; } + interface Event { readonly bubbles: boolean; cancelBubble: boolean; @@ -3609,6 +3695,7 @@ declare var Event: { readonly BUBBLING_PHASE: number; readonly CAPTURING_PHASE: number; } + interface EventTarget { addEventListener(type: string, listener?: EventListenerOrEventListenerObject, useCapture?: boolean): void; dispatchEvent(evt: Event): boolean; @@ -3619,6 +3706,7 @@ declare var EventTarget: { prototype: EventTarget; new(): EventTarget; } + interface ExtensionScriptApis { extensionIdToShortId(extensionId: string): number; fireExtensionApiTelemetry(functionName: string, isSucceeded: boolean, isSupported: boolean): void; @@ -3633,6 +3721,7 @@ declare var ExtensionScriptApis: { prototype: ExtensionScriptApis; new(): ExtensionScriptApis; } + interface External { } @@ -3640,6 +3729,7 @@ declare var External: { prototype: External; new(): External; } + interface File extends Blob { readonly lastModifiedDate: any; readonly name: string; @@ -3650,6 +3740,7 @@ declare var File: { prototype: File; new (parts: (ArrayBuffer | ArrayBufferView | Blob | string)[], filename: string, properties?: FilePropertyBag): File; } + interface FileList { readonly length: number; item(index: number): File; @@ -3660,6 +3751,7 @@ declare var FileList: { prototype: FileList; new(): FileList; } + interface FileReader extends EventTarget, MSBaseReader { readonly error: DOMError; readAsArrayBuffer(blob: Blob): void; @@ -3674,6 +3766,7 @@ declare var FileReader: { prototype: FileReader; new(): FileReader; } + interface FocusEvent extends UIEvent { readonly relatedTarget: EventTarget; initFocusEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, relatedTargetArg: EventTarget): void; @@ -3683,6 +3776,7 @@ declare var FocusEvent: { prototype: FocusEvent; new(typeArg: string, eventInitDict?: FocusEventInit): FocusEvent; } + interface FocusNavigationEvent extends Event { readonly navigationReason: string; readonly originHeight: number; @@ -3696,6 +3790,7 @@ declare var FocusNavigationEvent: { prototype: FocusNavigationEvent; new(type: string, eventInitDict?: FocusNavigationEventInit): FocusNavigationEvent; } + interface FormData { append(name: any, value: any, blobName?: string): void; } @@ -3704,6 +3799,7 @@ declare var FormData: { prototype: FormData; new (form?: HTMLFormElement): FormData; } + interface GainNode extends AudioNode { readonly gain: AudioParam; } @@ -3712,6 +3808,7 @@ declare var GainNode: { prototype: GainNode; new(): GainNode; } + interface Gamepad { readonly axes: number[]; readonly buttons: GamepadButton[]; @@ -3726,6 +3823,7 @@ declare var Gamepad: { prototype: Gamepad; new(): Gamepad; } + interface GamepadButton { readonly pressed: boolean; readonly value: number; @@ -3735,6 +3833,7 @@ declare var GamepadButton: { prototype: GamepadButton; new(): GamepadButton; } + interface GamepadEvent extends Event { readonly gamepad: Gamepad; } @@ -3743,6 +3842,7 @@ declare var GamepadEvent: { prototype: GamepadEvent; new(typeArg: string, eventInitDict?: GamepadEventInit): GamepadEvent; } + interface Geolocation { clearWatch(watchId: number): void; getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback, options?: PositionOptions): void; @@ -3753,6 +3853,7 @@ declare var Geolocation: { prototype: Geolocation; new(): Geolocation; } + interface HTMLAllCollection { readonly length: number; item(nameOrIndex?: string): HTMLCollection | Element | null; @@ -3764,6 +3865,7 @@ declare var HTMLAllCollection: { prototype: HTMLAllCollection; new(): HTMLAllCollection; } + interface HTMLAnchorElement extends HTMLElement { Methods: string; /** @@ -3852,6 +3954,7 @@ declare var HTMLAnchorElement: { prototype: HTMLAnchorElement; new(): HTMLAnchorElement; } + interface HTMLAppletElement extends HTMLElement { /** * Retrieves a string of the URL where the object tag can be found. This is often the href of the document that the object is in, or the value set by a base element. @@ -3925,6 +4028,7 @@ declare var HTMLAppletElement: { prototype: HTMLAppletElement; new(): HTMLAppletElement; } + interface HTMLAreaElement extends HTMLElement { /** * Sets or retrieves a text alternative to the graphic. @@ -3992,6 +4096,7 @@ declare var HTMLAreaElement: { prototype: HTMLAreaElement; new(): HTMLAreaElement; } + interface HTMLAreasCollection extends HTMLCollectionBase { } @@ -3999,6 +4104,7 @@ declare var HTMLAreasCollection: { prototype: HTMLAreasCollection; new(): HTMLAreasCollection; } + interface HTMLAudioElement extends HTMLMediaElement { addEventListener(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; @@ -4008,6 +4114,7 @@ declare var HTMLAudioElement: { prototype: HTMLAudioElement; new(): HTMLAudioElement; } + interface HTMLBRElement extends HTMLElement { /** * Sets or retrieves the side on which floating objects are not to be positioned when any IHTMLBlockElement is inserted into the document. @@ -4021,6 +4128,7 @@ declare var HTMLBRElement: { prototype: HTMLBRElement; new(): HTMLBRElement; } + interface HTMLBaseElement extends HTMLElement { /** * Gets or sets the baseline URL on which relative links are based. @@ -4038,6 +4146,7 @@ declare var HTMLBaseElement: { prototype: HTMLBaseElement; new(): HTMLBaseElement; } + interface HTMLBaseFontElement extends HTMLElement, DOML2DeprecatedColorProperty { /** * Sets or retrieves the current typeface family. @@ -4077,6 +4186,7 @@ interface HTMLBodyElementEventMap extends HTMLElementEventMap { "storage": StorageEvent; "unload": Event; } + interface HTMLBodyElement extends HTMLElement { aLink: any; background: string; @@ -4113,6 +4223,7 @@ declare var HTMLBodyElement: { prototype: HTMLBodyElement; new(): HTMLBodyElement; } + interface HTMLButtonElement extends HTMLElement { /** * Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing. @@ -4185,6 +4296,7 @@ declare var HTMLButtonElement: { prototype: HTMLButtonElement; new(): HTMLButtonElement; } + interface HTMLCanvasElement extends HTMLElement { /** * Gets or sets the height of a canvas element on a document. @@ -4219,6 +4331,7 @@ declare var HTMLCanvasElement: { prototype: HTMLCanvasElement; new(): HTMLCanvasElement; } + interface HTMLCollectionBase { /** * Sets or retrieves the number of objects in a collection. @@ -4242,6 +4355,7 @@ declare var HTMLCollection: { prototype: HTMLCollection; new(): HTMLCollection; } + interface HTMLDListElement extends HTMLElement { compact: boolean; addEventListener(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; @@ -4252,6 +4366,7 @@ declare var HTMLDListElement: { prototype: HTMLDListElement; new(): HTMLDListElement; } + interface HTMLDataElement extends HTMLElement { value: string; addEventListener(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; @@ -4262,6 +4377,7 @@ declare var HTMLDataElement: { prototype: HTMLDataElement; new(): HTMLDataElement; } + interface HTMLDataListElement extends HTMLElement { options: HTMLCollectionOf; addEventListener(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; @@ -4272,6 +4388,7 @@ declare var HTMLDataListElement: { prototype: HTMLDataListElement; new(): HTMLDataListElement; } + interface HTMLDirectoryElement extends HTMLElement { compact: boolean; addEventListener(type: K, listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; @@ -4282,6 +4399,7 @@ declare var HTMLDirectoryElement: { prototype: HTMLDirectoryElement; new(): HTMLDirectoryElement; } + interface HTMLDivElement extends HTMLElement { /** * Sets or retrieves how the object is aligned with adjacent text. @@ -4299,6 +4417,7 @@ declare var HTMLDivElement: { prototype: HTMLDivElement; new(): HTMLDivElement; } + interface HTMLDocument extends Document { addEventListener(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; @@ -4378,6 +4497,7 @@ interface HTMLElementEventMap extends ElementEventMap { "volumechange": Event; "waiting": Event; } + interface HTMLElement extends Element { accessKey: string; readonly children: HTMLCollection; @@ -4480,6 +4600,7 @@ declare var HTMLElement: { prototype: HTMLElement; new(): HTMLElement; } + interface HTMLEmbedElement extends HTMLElement, GetSVGDocument { /** * Sets or retrieves the height of the object. @@ -4535,6 +4656,7 @@ declare var HTMLEmbedElement: { prototype: HTMLEmbedElement; new(): HTMLEmbedElement; } + interface HTMLFieldSetElement extends HTMLElement { /** * Sets or retrieves how the object is aligned with adjacent text. @@ -4575,6 +4697,7 @@ declare var HTMLFieldSetElement: { prototype: HTMLFieldSetElement; new(): HTMLFieldSetElement; } + interface HTMLFontElement extends HTMLElement, DOML2DeprecatedColorProperty, DOML2DeprecatedSizeProperty { /** * Sets or retrieves the current typeface family. @@ -4588,6 +4711,7 @@ declare var HTMLFontElement: { prototype: HTMLFontElement; new(): HTMLFontElement; } + interface HTMLFormControlsCollection extends HTMLCollectionBase { namedItem(name: string): HTMLCollection | Element | null; } @@ -4596,6 +4720,7 @@ declare var HTMLFormControlsCollection: { prototype: HTMLFormControlsCollection; new(): HTMLFormControlsCollection; } + interface HTMLFormElement extends HTMLElement { /** * Sets or retrieves a list of character encodings for input data that must be accepted by the server processing the form. @@ -4676,6 +4801,7 @@ declare var HTMLFormElement: { interface HTMLFrameElementEventMap extends HTMLElementEventMap { "load": Event; } + interface HTMLFrameElement extends HTMLElement, GetSVGDocument { /** * Specifies the properties of a border drawn around an object. @@ -4771,6 +4897,7 @@ interface HTMLFrameSetElementEventMap extends HTMLElementEventMap { "storage": StorageEvent; "unload": Event; } + interface HTMLFrameSetElement extends HTMLElement { border: string; /** @@ -4827,6 +4954,7 @@ declare var HTMLFrameSetElement: { prototype: HTMLFrameSetElement; new(): HTMLFrameSetElement; } + interface HTMLHRElement extends HTMLElement, DOML2DeprecatedColorProperty, DOML2DeprecatedSizeProperty { /** * Sets or retrieves how the object is aligned with adjacent text. @@ -4848,6 +4976,7 @@ declare var HTMLHRElement: { prototype: HTMLHRElement; new(): HTMLHRElement; } + interface HTMLHeadElement extends HTMLElement { profile: string; addEventListener(type: K, listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; @@ -4858,6 +4987,7 @@ declare var HTMLHeadElement: { prototype: HTMLHeadElement; new(): HTMLHeadElement; } + interface HTMLHeadingElement extends HTMLElement { /** * Sets or retrieves a value that indicates the table alignment. @@ -4871,6 +5001,7 @@ declare var HTMLHeadingElement: { prototype: HTMLHeadingElement; new(): HTMLHeadingElement; } + interface HTMLHtmlElement extends HTMLElement { /** * Sets or retrieves the DTD version that governs the current document. @@ -4888,6 +5019,7 @@ declare var HTMLHtmlElement: { interface HTMLIFrameElementEventMap extends HTMLElementEventMap { "load": Event; } + interface HTMLIFrameElement extends HTMLElement, GetSVGDocument { /** * Sets or retrieves how the object is aligned with adjacent text. @@ -4972,6 +5104,7 @@ declare var HTMLIFrameElement: { prototype: HTMLIFrameElement; new(): HTMLIFrameElement; } + interface HTMLImageElement extends HTMLElement { /** * Sets or retrieves how the object is aligned with adjacent text. @@ -5062,6 +5195,7 @@ declare var HTMLImageElement: { prototype: HTMLImageElement; new(): HTMLImageElement; } + interface HTMLInputElement extends HTMLElement { /** * Sets or retrieves a comma-separated list of content types. @@ -5273,6 +5407,7 @@ declare var HTMLInputElement: { prototype: HTMLInputElement; new(): HTMLInputElement; } + interface HTMLLIElement extends HTMLElement { type: string; /** @@ -5287,6 +5422,7 @@ declare var HTMLLIElement: { prototype: HTMLLIElement; new(): HTMLLIElement; } + interface HTMLLabelElement extends HTMLElement { /** * Retrieves a reference to the form that the object is embedded in. @@ -5304,6 +5440,7 @@ declare var HTMLLabelElement: { prototype: HTMLLabelElement; new(): HTMLLabelElement; } + interface HTMLLegendElement extends HTMLElement { /** * Retrieves a reference to the form that the object is embedded in. @@ -5321,6 +5458,7 @@ declare var HTMLLegendElement: { prototype: HTMLLegendElement; new(): HTMLLegendElement; } + interface HTMLLinkElement extends HTMLElement, LinkStyle { /** * Sets or retrieves the character set used to encode the object. @@ -5365,6 +5503,7 @@ declare var HTMLLinkElement: { prototype: HTMLLinkElement; new(): HTMLLinkElement; } + interface HTMLMapElement extends HTMLElement { /** * Retrieves a collection of the area objects defined for the given map object. @@ -5388,6 +5527,7 @@ interface HTMLMarqueeElementEventMap extends HTMLElementEventMap { "finish": Event; "start": Event; } + interface HTMLMarqueeElement extends HTMLElement { behavior: string; bgColor: any; @@ -5418,6 +5558,7 @@ interface HTMLMediaElementEventMap extends HTMLElementEventMap { "encrypted": MediaEncryptedEvent; "msneedkey": MSMediaKeyNeededEvent; } + interface HTMLMediaElement extends HTMLElement { /** * Returns an AudioTrackList object with the audio tracks for a given video element. @@ -5603,6 +5744,7 @@ declare var HTMLMediaElement: { readonly NETWORK_LOADING: number; readonly NETWORK_NO_SOURCE: number; } + interface HTMLMenuElement extends HTMLElement { compact: boolean; type: string; @@ -5614,6 +5756,7 @@ declare var HTMLMenuElement: { prototype: HTMLMenuElement; new(): HTMLMenuElement; } + interface HTMLMetaElement extends HTMLElement { /** * Sets or retrieves the character set used to encode the object. @@ -5647,6 +5790,7 @@ declare var HTMLMetaElement: { prototype: HTMLMetaElement; new(): HTMLMetaElement; } + interface HTMLMeterElement extends HTMLElement { high: number; low: number; @@ -5662,6 +5806,7 @@ declare var HTMLMeterElement: { prototype: HTMLMeterElement; new(): HTMLMeterElement; } + interface HTMLModElement extends HTMLElement { /** * Sets or retrieves reference information about the object. @@ -5679,6 +5824,7 @@ declare var HTMLModElement: { prototype: HTMLModElement; new(): HTMLModElement; } + interface HTMLOListElement extends HTMLElement { compact: boolean; /** @@ -5694,6 +5840,7 @@ declare var HTMLOListElement: { prototype: HTMLOListElement; new(): HTMLOListElement; } + interface HTMLObjectElement extends HTMLElement, GetSVGDocument { /** * Retrieves a string of the URL where the object tag can be found. This is often the href of the document that the object is in, or the value set by a base element. @@ -5810,6 +5957,7 @@ declare var HTMLObjectElement: { prototype: HTMLObjectElement; new(): HTMLObjectElement; } + interface HTMLOptGroupElement extends HTMLElement { /** * Sets or retrieves the status of an option. @@ -5848,6 +5996,7 @@ declare var HTMLOptGroupElement: { prototype: HTMLOptGroupElement; new(): HTMLOptGroupElement; } + interface HTMLOptionElement extends HTMLElement { /** * Sets or retrieves the status of an option. @@ -5886,6 +6035,7 @@ declare var HTMLOptionElement: { prototype: HTMLOptionElement; new(): HTMLOptionElement; } + interface HTMLOptionsCollection extends HTMLCollectionOf { length: number; selectedIndex: number; @@ -5897,6 +6047,7 @@ declare var HTMLOptionsCollection: { prototype: HTMLOptionsCollection; new(): HTMLOptionsCollection; } + interface HTMLOutputElement extends HTMLElement { defaultValue: string; readonly form: HTMLFormElement; @@ -5918,6 +6069,7 @@ declare var HTMLOutputElement: { prototype: HTMLOutputElement; new(): HTMLOutputElement; } + interface HTMLParagraphElement extends HTMLElement { /** * Sets or retrieves how the object is aligned with adjacent text. @@ -5932,6 +6084,7 @@ declare var HTMLParagraphElement: { prototype: HTMLParagraphElement; new(): HTMLParagraphElement; } + interface HTMLParamElement extends HTMLElement { /** * Sets or retrieves the name of an input parameter for an element. @@ -5957,6 +6110,7 @@ declare var HTMLParamElement: { prototype: HTMLParamElement; new(): HTMLParamElement; } + interface HTMLPictureElement extends HTMLElement { addEventListener(type: K, listener: (this: HTMLPictureElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; @@ -5966,6 +6120,7 @@ declare var HTMLPictureElement: { prototype: HTMLPictureElement; new(): HTMLPictureElement; } + interface HTMLPreElement extends HTMLElement { /** * Sets or gets a value that you can use to implement your own width functionality for the object. @@ -5979,6 +6134,7 @@ declare var HTMLPreElement: { prototype: HTMLPreElement; new(): HTMLPreElement; } + interface HTMLProgressElement extends HTMLElement { /** * Retrieves a reference to the form that the object is embedded in. @@ -6004,6 +6160,7 @@ declare var HTMLProgressElement: { prototype: HTMLProgressElement; new(): HTMLProgressElement; } + interface HTMLQuoteElement extends HTMLElement { /** * Sets or retrieves reference information about the object. @@ -6017,6 +6174,7 @@ declare var HTMLQuoteElement: { prototype: HTMLQuoteElement; new(): HTMLQuoteElement; } + interface HTMLScriptElement extends HTMLElement { async: boolean; /** @@ -6057,6 +6215,7 @@ declare var HTMLScriptElement: { prototype: HTMLScriptElement; new(): HTMLScriptElement; } + interface HTMLSelectElement extends HTMLElement { /** * Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing. @@ -6153,6 +6312,7 @@ declare var HTMLSelectElement: { prototype: HTMLSelectElement; new(): HTMLSelectElement; } + interface HTMLSourceElement extends HTMLElement { /** * Gets or sets the intended media type of the media source. @@ -6177,6 +6337,7 @@ declare var HTMLSourceElement: { prototype: HTMLSourceElement; new(): HTMLSourceElement; } + interface HTMLSpanElement extends HTMLElement { addEventListener(type: K, listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; @@ -6186,6 +6347,7 @@ declare var HTMLSpanElement: { prototype: HTMLSpanElement; new(): HTMLSpanElement; } + interface HTMLStyleElement extends HTMLElement, LinkStyle { disabled: boolean; /** @@ -6204,6 +6366,7 @@ declare var HTMLStyleElement: { prototype: HTMLStyleElement; new(): HTMLStyleElement; } + interface HTMLTableCaptionElement extends HTMLElement { /** * Sets or retrieves the alignment of the caption or legend. @@ -6221,6 +6384,7 @@ declare var HTMLTableCaptionElement: { prototype: HTMLTableCaptionElement; new(): HTMLTableCaptionElement; } + interface HTMLTableCellElement extends HTMLElement, HTMLTableAlignment { /** * Sets or retrieves abbreviated text for the object. @@ -6275,6 +6439,7 @@ declare var HTMLTableCellElement: { prototype: HTMLTableCellElement; new(): HTMLTableCellElement; } + interface HTMLTableColElement extends HTMLElement, HTMLTableAlignment { /** * Sets or retrieves the alignment of the object relative to the display or table. @@ -6296,6 +6461,7 @@ declare var HTMLTableColElement: { prototype: HTMLTableColElement; new(): HTMLTableColElement; } + interface HTMLTableDataCellElement extends HTMLTableCellElement { addEventListener(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; @@ -6305,6 +6471,7 @@ declare var HTMLTableDataCellElement: { prototype: HTMLTableDataCellElement; new(): HTMLTableDataCellElement; } + interface HTMLTableElement extends HTMLElement { /** * Sets or retrieves a value that indicates the table alignment. @@ -6417,6 +6584,7 @@ declare var HTMLTableElement: { prototype: HTMLTableElement; new(): HTMLTableElement; } + interface HTMLTableHeaderCellElement extends HTMLTableCellElement { /** * Sets or retrieves the group of cells in a table to which the object's information applies. @@ -6430,6 +6598,7 @@ declare var HTMLTableHeaderCellElement: { prototype: HTMLTableHeaderCellElement; new(): HTMLTableHeaderCellElement; } + interface HTMLTableRowElement extends HTMLElement, HTMLTableAlignment { /** * Sets or retrieves how the object is aligned with adjacent text. @@ -6470,6 +6639,7 @@ declare var HTMLTableRowElement: { prototype: HTMLTableRowElement; new(): HTMLTableRowElement; } + interface HTMLTableSectionElement extends HTMLElement, HTMLTableAlignment { /** * Sets or retrieves a value that indicates the table alignment. @@ -6497,6 +6667,7 @@ declare var HTMLTableSectionElement: { prototype: HTMLTableSectionElement; new(): HTMLTableSectionElement; } + interface HTMLTemplateElement extends HTMLElement { readonly content: DocumentFragment; addEventListener(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; @@ -6507,6 +6678,7 @@ declare var HTMLTemplateElement: { prototype: HTMLTemplateElement; new(): HTMLTemplateElement; } + interface HTMLTextAreaElement extends HTMLElement { /** * Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing. @@ -6613,6 +6785,7 @@ declare var HTMLTextAreaElement: { prototype: HTMLTextAreaElement; new(): HTMLTextAreaElement; } + interface HTMLTimeElement extends HTMLElement { dateTime: string; addEventListener(type: K, listener: (this: HTMLTimeElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; @@ -6623,6 +6796,7 @@ declare var HTMLTimeElement: { prototype: HTMLTimeElement; new(): HTMLTimeElement; } + interface HTMLTitleElement extends HTMLElement { /** * Retrieves or sets the text of the object as a string. @@ -6636,6 +6810,7 @@ declare var HTMLTitleElement: { prototype: HTMLTitleElement; new(): HTMLTitleElement; } + interface HTMLTrackElement extends HTMLElement { default: boolean; kind: string; @@ -6660,6 +6835,7 @@ declare var HTMLTrackElement: { readonly LOADING: number; readonly NONE: number; } + interface HTMLUListElement extends HTMLElement { compact: boolean; type: string; @@ -6671,6 +6847,7 @@ declare var HTMLUListElement: { prototype: HTMLUListElement; new(): HTMLUListElement; } + interface HTMLUnknownElement extends HTMLElement { addEventListener(type: K, listener: (this: HTMLUnknownElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; @@ -6686,6 +6863,7 @@ interface HTMLVideoElementEventMap extends HTMLMediaElementEventMap { "MSVideoFrameStepCompleted": Event; "MSVideoOptimalLayoutChanged": Event; } + interface HTMLVideoElement extends HTMLMediaElement { /** * Gets or sets the height of the video element. @@ -6734,6 +6912,7 @@ declare var HTMLVideoElement: { prototype: HTMLVideoElement; new(): HTMLVideoElement; } + interface HashChangeEvent extends Event { readonly newURL: string | null; readonly oldURL: string | null; @@ -6743,6 +6922,7 @@ declare var HashChangeEvent: { prototype: HashChangeEvent; new(typeArg: string, eventInitDict?: HashChangeEventInit): HashChangeEvent; } + interface Headers { append(name: string, value: string): void; delete(name: string): void; @@ -6756,6 +6936,7 @@ declare var Headers: { prototype: Headers; new(init?: any): Headers; } + interface History { readonly length: number; readonly state: any; @@ -6771,6 +6952,7 @@ declare var History: { prototype: History; new(): History; } + interface IDBCursor { readonly direction: string; key: IDBKeyRange | IDBValidKey; @@ -6794,6 +6976,7 @@ declare var IDBCursor: { readonly PREV: string; readonly PREV_NO_DUPLICATE: string; } + interface IDBCursorWithValue extends IDBCursor { readonly value: any; } @@ -6807,6 +6990,7 @@ interface IDBDatabaseEventMap { "abort": Event; "error": Event; } + interface IDBDatabase extends EventTarget { readonly name: string; readonly objectStoreNames: DOMStringList; @@ -6827,6 +7011,7 @@ declare var IDBDatabase: { prototype: IDBDatabase; new(): IDBDatabase; } + interface IDBFactory { cmp(first: any, second: any): number; deleteDatabase(name: string): IDBOpenDBRequest; @@ -6837,6 +7022,7 @@ declare var IDBFactory: { prototype: IDBFactory; new(): IDBFactory; } + interface IDBIndex { keyPath: string | string[]; readonly name: string; @@ -6854,6 +7040,7 @@ declare var IDBIndex: { prototype: IDBIndex; new(): IDBIndex; } + interface IDBKeyRange { readonly lower: any; readonly lowerOpen: boolean; @@ -6869,6 +7056,7 @@ declare var IDBKeyRange: { only(value: any): IDBKeyRange; upperBound(upper: any, open?: boolean): IDBKeyRange; } + interface IDBObjectStore { readonly indexNames: DOMStringList; keyPath: string | string[]; @@ -6896,6 +7084,7 @@ interface IDBOpenDBRequestEventMap extends IDBRequestEventMap { "blocked": Event; "upgradeneeded": IDBVersionChangeEvent; } + interface IDBOpenDBRequest extends IDBRequest { onblocked: (this: IDBOpenDBRequest, ev: Event) => any; onupgradeneeded: (this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any; @@ -6912,6 +7101,7 @@ interface IDBRequestEventMap { "error": Event; "success": Event; } + interface IDBRequest extends EventTarget { readonly error: DOMError; onerror: (this: IDBRequest, ev: Event) => any; @@ -6934,6 +7124,7 @@ interface IDBTransactionEventMap { "complete": Event; "error": Event; } + interface IDBTransaction extends EventTarget { readonly db: IDBDatabase; readonly error: DOMError; @@ -6957,6 +7148,7 @@ declare var IDBTransaction: { readonly READ_WRITE: string; readonly VERSION_CHANGE: string; } + interface IDBVersionChangeEvent extends Event { readonly newVersion: number | null; readonly oldVersion: number; @@ -6966,6 +7158,7 @@ declare var IDBVersionChangeEvent: { prototype: IDBVersionChangeEvent; new(): IDBVersionChangeEvent; } + interface IIRFilterNode extends AudioNode { getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void; } @@ -6974,6 +7167,7 @@ declare var IIRFilterNode: { prototype: IIRFilterNode; new(): IIRFilterNode; } + interface ImageData { data: Uint8ClampedArray; readonly height: number; @@ -6985,6 +7179,7 @@ declare var ImageData: { new(width: number, height: number): ImageData; new(array: Uint8ClampedArray, width: number, height: number): ImageData; } + interface IntersectionObserver { readonly root: Element | null; readonly rootMargin: string; @@ -6999,6 +7194,7 @@ declare var IntersectionObserver: { prototype: IntersectionObserver; new(callback: IntersectionObserverCallback, options?: IntersectionObserverInit): IntersectionObserver; } + interface IntersectionObserverEntry { readonly boundingClientRect: ClientRect; readonly intersectionRatio: number; @@ -7012,6 +7208,7 @@ declare var IntersectionObserverEntry: { prototype: IntersectionObserverEntry; new(intersectionObserverEntryInit: IntersectionObserverEntryInit): IntersectionObserverEntry; } + interface KeyboardEvent extends UIEvent { readonly altKey: boolean; readonly char: string | null; @@ -7046,6 +7243,7 @@ declare var KeyboardEvent: { readonly DOM_KEY_LOCATION_RIGHT: number; readonly DOM_KEY_LOCATION_STANDARD: number; } + interface ListeningStateChangedEvent extends Event { readonly label: string; readonly state: string; @@ -7055,6 +7253,7 @@ declare var ListeningStateChangedEvent: { prototype: ListeningStateChangedEvent; new(): ListeningStateChangedEvent; } + interface Location { hash: string; host: string; @@ -7075,6 +7274,7 @@ declare var Location: { prototype: Location; new(): Location; } + interface LongRunningScriptDetectedEvent extends Event { readonly executionTime: number; stopPageScriptExecution: boolean; @@ -7084,6 +7284,7 @@ declare var LongRunningScriptDetectedEvent: { prototype: LongRunningScriptDetectedEvent; new(): LongRunningScriptDetectedEvent; } + interface MSApp { clearTemporaryWebDataAsync(): MSAppAsyncOperation; createBlobFromRandomAccessStream(type: string, seeker: any): Blob; @@ -7111,6 +7312,7 @@ interface MSAppAsyncOperationEventMap { "complete": Event; "error": Event; } + interface MSAppAsyncOperation extends EventTarget { readonly error: DOMError; oncomplete: (this: MSAppAsyncOperation, ev: Event) => any; @@ -7132,6 +7334,7 @@ declare var MSAppAsyncOperation: { readonly ERROR: number; readonly STARTED: number; } + interface MSAssertion { readonly id: string; readonly type: string; @@ -7141,6 +7344,7 @@ declare var MSAssertion: { prototype: MSAssertion; new(): MSAssertion; } + interface MSBlobBuilder { append(data: any, endings?: string): void; getBlob(contentType?: string): Blob; @@ -7150,6 +7354,7 @@ declare var MSBlobBuilder: { prototype: MSBlobBuilder; new(): MSBlobBuilder; } + interface MSCredentials { getAssertion(challenge: string, filter?: MSCredentialFilter, params?: MSSignatureParameters): Promise; makeCredential(accountInfo: MSAccountInfo, params: MSCredentialParameters[], challenge?: string): Promise; @@ -7159,6 +7364,7 @@ declare var MSCredentials: { prototype: MSCredentials; new(): MSCredentials; } + interface MSFIDOCredentialAssertion extends MSAssertion { readonly algorithm: string | Algorithm; readonly attestation: any; @@ -7170,6 +7376,7 @@ declare var MSFIDOCredentialAssertion: { prototype: MSFIDOCredentialAssertion; new(): MSFIDOCredentialAssertion; } + interface MSFIDOSignature { readonly authnrData: string; readonly clientData: string; @@ -7180,6 +7387,7 @@ declare var MSFIDOSignature: { prototype: MSFIDOSignature; new(): MSFIDOSignature; } + interface MSFIDOSignatureAssertion extends MSAssertion { readonly signature: MSFIDOSignature; } @@ -7188,6 +7396,7 @@ declare var MSFIDOSignatureAssertion: { prototype: MSFIDOSignatureAssertion; new(): MSFIDOSignatureAssertion; } + interface MSGesture { target: Element; addPointer(pointerId: number): void; @@ -7198,6 +7407,7 @@ declare var MSGesture: { prototype: MSGesture; new(): MSGesture; } + interface MSGestureEvent extends UIEvent { readonly clientX: number; readonly clientY: number; @@ -7233,6 +7443,7 @@ declare var MSGestureEvent: { readonly MSGESTURE_FLAG_INERTIA: number; readonly MSGESTURE_FLAG_NONE: number; } + interface MSGraphicsTrust { readonly constrictionActive: boolean; readonly status: string; @@ -7242,6 +7453,7 @@ declare var MSGraphicsTrust: { prototype: MSGraphicsTrust; new(): MSGraphicsTrust; } + interface MSHTMLWebViewElement extends HTMLElement { readonly canGoBack: boolean; readonly canGoForward: boolean; @@ -7281,6 +7493,7 @@ interface MSInputMethodContextEventMap { "MSCandidateWindowShow": Event; "MSCandidateWindowUpdate": Event; } + interface MSInputMethodContext extends EventTarget { readonly compositionEndOffset: number; readonly compositionStartOffset: number; @@ -7300,6 +7513,7 @@ declare var MSInputMethodContext: { prototype: MSInputMethodContext; new(): MSInputMethodContext; } + interface MSManipulationEvent extends UIEvent { readonly currentState: number; readonly inertiaDestinationX: number; @@ -7328,6 +7542,7 @@ declare var MSManipulationEvent: { readonly MS_MANIPULATION_STATE_SELECTING: number; readonly MS_MANIPULATION_STATE_STOPPED: number; } + interface MSMediaKeyError { readonly code: number; readonly systemCode: number; @@ -7349,6 +7564,7 @@ declare var MSMediaKeyError: { readonly MS_MEDIA_KEYERR_SERVICE: number; readonly MS_MEDIA_KEYERR_UNKNOWN: number; } + interface MSMediaKeyMessageEvent extends Event { readonly destinationURL: string | null; readonly message: Uint8Array; @@ -7358,6 +7574,7 @@ declare var MSMediaKeyMessageEvent: { prototype: MSMediaKeyMessageEvent; new(): MSMediaKeyMessageEvent; } + interface MSMediaKeyNeededEvent extends Event { readonly initData: Uint8Array | null; } @@ -7366,6 +7583,7 @@ declare var MSMediaKeyNeededEvent: { prototype: MSMediaKeyNeededEvent; new(): MSMediaKeyNeededEvent; } + interface MSMediaKeySession extends EventTarget { readonly error: MSMediaKeyError | null; readonly keySystem: string; @@ -7378,6 +7596,7 @@ declare var MSMediaKeySession: { prototype: MSMediaKeySession; new(): MSMediaKeySession; } + interface MSMediaKeys { readonly keySystem: string; createSession(type: string, initData: Uint8Array, cdmData?: Uint8Array): MSMediaKeySession; @@ -7389,6 +7608,7 @@ declare var MSMediaKeys: { isTypeSupported(keySystem: string, type?: string): boolean; isTypeSupportedWithFeatures(keySystem: string, type?: string): string; } + interface MSPointerEvent extends MouseEvent { readonly currentPoint: any; readonly height: number; @@ -7411,6 +7631,7 @@ declare var MSPointerEvent: { prototype: MSPointerEvent; new(typeArg: string, eventInitDict?: PointerEventInit): MSPointerEvent; } + interface MSRangeCollection { readonly length: number; item(index: number): Range; @@ -7421,6 +7642,7 @@ declare var MSRangeCollection: { prototype: MSRangeCollection; new(): MSRangeCollection; } + interface MSSiteModeEvent extends Event { readonly actionURL: string; readonly buttonID: number; @@ -7430,6 +7652,7 @@ declare var MSSiteModeEvent: { prototype: MSSiteModeEvent; new(): MSSiteModeEvent; } + interface MSStream { readonly type: string; msClose(): void; @@ -7440,6 +7663,7 @@ declare var MSStream: { prototype: MSStream; new(): MSStream; } + interface MSStreamReader extends EventTarget, MSBaseReader { readonly error: DOMError; readAsArrayBuffer(stream: MSStream, size?: number): void; @@ -7460,6 +7684,7 @@ interface MSWebViewAsyncOperationEventMap { "complete": Event; "error": Event; } + interface MSWebViewAsyncOperation extends EventTarget { readonly error: DOMError; oncomplete: (this: MSWebViewAsyncOperation, ev: Event) => any; @@ -7489,6 +7714,7 @@ declare var MSWebViewAsyncOperation: { readonly TYPE_CREATE_DATA_PACKAGE_FROM_SELECTION: number; readonly TYPE_INVOKE_SCRIPT: number; } + interface MSWebViewSettings { isIndexedDBEnabled: boolean; isJavaScriptEnabled: boolean; @@ -7498,6 +7724,7 @@ declare var MSWebViewSettings: { prototype: MSWebViewSettings; new(): MSWebViewSettings; } + interface MediaDeviceInfo { readonly deviceId: string; readonly groupId: string; @@ -7513,6 +7740,7 @@ declare var MediaDeviceInfo: { interface MediaDevicesEventMap { "devicechange": Event; } + interface MediaDevices extends EventTarget { ondevicechange: (this: MediaDevices, ev: Event) => any; enumerateDevices(): any; @@ -7526,6 +7754,7 @@ declare var MediaDevices: { prototype: MediaDevices; new(): MediaDevices; } + interface MediaElementAudioSourceNode extends AudioNode { } @@ -7533,6 +7762,7 @@ declare var MediaElementAudioSourceNode: { prototype: MediaElementAudioSourceNode; new(): MediaElementAudioSourceNode; } + interface MediaEncryptedEvent extends Event { readonly initData: ArrayBuffer | null; readonly initDataType: string; @@ -7542,6 +7772,7 @@ declare var MediaEncryptedEvent: { prototype: MediaEncryptedEvent; new(type: string, eventInitDict?: MediaEncryptedEventInit): MediaEncryptedEvent; } + interface MediaError { readonly code: number; readonly msExtendedCode: number; @@ -7561,6 +7792,7 @@ declare var MediaError: { readonly MEDIA_ERR_SRC_NOT_SUPPORTED: number; readonly MS_MEDIA_ERR_ENCRYPTED: number; } + interface MediaKeyMessageEvent extends Event { readonly message: ArrayBuffer; readonly messageType: string; @@ -7570,6 +7802,7 @@ declare var MediaKeyMessageEvent: { prototype: MediaKeyMessageEvent; new(type: string, eventInitDict?: MediaKeyMessageEventInit): MediaKeyMessageEvent; } + interface MediaKeySession extends EventTarget { readonly closed: Promise; readonly expiration: number; @@ -7586,6 +7819,7 @@ declare var MediaKeySession: { prototype: MediaKeySession; new(): MediaKeySession; } + interface MediaKeyStatusMap { readonly size: number; forEach(callback: ForEachCallback): void; @@ -7597,6 +7831,7 @@ declare var MediaKeyStatusMap: { prototype: MediaKeyStatusMap; new(): MediaKeyStatusMap; } + interface MediaKeySystemAccess { readonly keySystem: string; createMediaKeys(): Promise; @@ -7607,6 +7842,7 @@ declare var MediaKeySystemAccess: { prototype: MediaKeySystemAccess; new(): MediaKeySystemAccess; } + interface MediaKeys { createSession(sessionType?: string): MediaKeySession; setServerCertificate(serverCertificate: any): Promise; @@ -7616,6 +7852,7 @@ declare var MediaKeys: { prototype: MediaKeys; new(): MediaKeys; } + interface MediaList { readonly length: number; mediaText: string; @@ -7630,6 +7867,7 @@ declare var MediaList: { prototype: MediaList; new(): MediaList; } + interface MediaQueryList { readonly matches: boolean; readonly media: string; @@ -7641,6 +7879,7 @@ declare var MediaQueryList: { prototype: MediaQueryList; new(): MediaQueryList; } + interface MediaSource extends EventTarget { readonly activeSourceBuffers: SourceBufferList; duration: number; @@ -7663,6 +7902,7 @@ interface MediaStreamEventMap { "inactive": Event; "removetrack": MediaStreamTrackEvent; } + interface MediaStream extends EventTarget { readonly active: boolean; readonly id: string; @@ -7686,6 +7926,7 @@ declare var MediaStream: { prototype: MediaStream; new(streamOrTracks?: MediaStream | MediaStreamTrack[]): MediaStream; } + interface MediaStreamAudioSourceNode extends AudioNode { } @@ -7693,6 +7934,7 @@ declare var MediaStreamAudioSourceNode: { prototype: MediaStreamAudioSourceNode; new(): MediaStreamAudioSourceNode; } + interface MediaStreamError { readonly constraintName: string | null; readonly message: string | null; @@ -7703,6 +7945,7 @@ declare var MediaStreamError: { prototype: MediaStreamError; new(): MediaStreamError; } + interface MediaStreamErrorEvent extends Event { readonly error: MediaStreamError | null; } @@ -7711,6 +7954,7 @@ declare var MediaStreamErrorEvent: { prototype: MediaStreamErrorEvent; new(typeArg: string, eventInitDict?: MediaStreamErrorEventInit): MediaStreamErrorEvent; } + interface MediaStreamEvent extends Event { readonly stream: MediaStream | null; } @@ -7726,6 +7970,7 @@ interface MediaStreamTrackEventMap { "overconstrained": MediaStreamErrorEvent; "unmute": Event; } + interface MediaStreamTrack extends EventTarget { enabled: boolean; readonly id: string; @@ -7753,6 +7998,7 @@ declare var MediaStreamTrack: { prototype: MediaStreamTrack; new(): MediaStreamTrack; } + interface MediaStreamTrackEvent extends Event { readonly track: MediaStreamTrack; } @@ -7761,6 +8007,7 @@ declare var MediaStreamTrackEvent: { prototype: MediaStreamTrackEvent; new(typeArg: string, eventInitDict?: MediaStreamTrackEventInit): MediaStreamTrackEvent; } + interface MessageChannel { readonly port1: MessagePort; readonly port2: MessagePort; @@ -7770,6 +8017,7 @@ declare var MessageChannel: { prototype: MessageChannel; new(): MessageChannel; } + interface MessageEvent extends Event { readonly data: any; readonly origin: string; @@ -7786,6 +8034,7 @@ declare var MessageEvent: { interface MessagePortEventMap { "message": MessageEvent; } + interface MessagePort extends EventTarget { onmessage: (this: MessagePort, ev: MessageEvent) => any; close(): void; @@ -7799,6 +8048,7 @@ declare var MessagePort: { prototype: MessagePort; new(): MessagePort; } + interface MimeType { readonly description: string; readonly enabledPlugin: Plugin; @@ -7810,6 +8060,7 @@ declare var MimeType: { prototype: MimeType; new(): MimeType; } + interface MimeTypeArray { readonly length: number; item(index: number): Plugin; @@ -7821,6 +8072,7 @@ declare var MimeTypeArray: { prototype: MimeTypeArray; new(): MimeTypeArray; } + interface MouseEvent extends UIEvent { readonly altKey: boolean; readonly button: number; @@ -7854,6 +8106,7 @@ declare var MouseEvent: { prototype: MouseEvent; new(typeArg: string, eventInitDict?: MouseEventInit): MouseEvent; } + interface MutationEvent extends Event { readonly attrChange: number; readonly attrName: string; @@ -7873,6 +8126,7 @@ declare var MutationEvent: { readonly MODIFICATION: number; readonly REMOVAL: number; } + interface MutationObserver { disconnect(): void; observe(target: Node, options: MutationObserverInit): void; @@ -7883,6 +8137,7 @@ declare var MutationObserver: { prototype: MutationObserver; new(callback: MutationCallback): MutationObserver; } + interface MutationRecord { readonly addedNodes: NodeList; readonly attributeName: string | null; @@ -7899,6 +8154,7 @@ declare var MutationRecord: { prototype: MutationRecord; new(): MutationRecord; } + interface NamedNodeMap { readonly length: number; getNamedItem(name: string): Attr; @@ -7915,6 +8171,7 @@ declare var NamedNodeMap: { prototype: NamedNodeMap; new(): NamedNodeMap; } + interface NavigationCompletedEvent extends NavigationEvent { readonly isSuccess: boolean; readonly webErrorStatus: number; @@ -7924,6 +8181,7 @@ declare var NavigationCompletedEvent: { prototype: NavigationCompletedEvent; new(): NavigationCompletedEvent; } + interface NavigationEvent extends Event { readonly uri: string; } @@ -7932,6 +8190,7 @@ declare var NavigationEvent: { prototype: NavigationEvent; new(): NavigationEvent; } + interface NavigationEventWithReferrer extends NavigationEvent { readonly referer: string; } @@ -7940,6 +8199,7 @@ declare var NavigationEventWithReferrer: { prototype: NavigationEventWithReferrer; new(): NavigationEventWithReferrer; } + interface Navigator extends Object, NavigatorID, NavigatorOnLine, NavigatorContentUtils, NavigatorStorageUtils, NavigatorGeolocation, MSNavigatorDoNotTrack, MSFileSaver, NavigatorBeacon, NavigatorConcurrentHardware, NavigatorUserMedia { readonly authentication: WebAuthentication; readonly cookieEnabled: boolean; @@ -7966,6 +8226,7 @@ declare var Navigator: { prototype: Navigator; new(): Navigator; } + interface Node extends EventTarget { readonly attributes: NamedNodeMap; readonly baseURI: string | null; @@ -8040,6 +8301,7 @@ declare var Node: { readonly PROCESSING_INSTRUCTION_NODE: number; readonly TEXT_NODE: number; } + interface NodeFilter { acceptNode(n: Node): number; } @@ -8062,6 +8324,7 @@ declare var NodeFilter: { readonly SHOW_PROCESSING_INSTRUCTION: number; readonly SHOW_TEXT: number; } + interface NodeIterator { readonly expandEntityReferences: boolean; readonly filter: NodeFilter; @@ -8076,6 +8339,7 @@ declare var NodeIterator: { prototype: NodeIterator; new(): NodeIterator; } + interface NodeList { readonly length: number; item(index: number): Node; @@ -8093,6 +8357,7 @@ interface NotificationEventMap { "error": Event; "show": Event; } + interface Notification extends EventTarget { readonly body: string; readonly dir: string; @@ -8115,6 +8380,7 @@ declare var Notification: { new(title: string, options?: NotificationOptions): Notification; requestPermission(callback?: NotificationPermissionCallback): Promise; } + interface OES_element_index_uint { } @@ -8122,6 +8388,7 @@ declare var OES_element_index_uint: { prototype: OES_element_index_uint; new(): OES_element_index_uint; } + interface OES_standard_derivatives { readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: number; } @@ -8131,6 +8398,7 @@ declare var OES_standard_derivatives: { new(): OES_standard_derivatives; readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: number; } + interface OES_texture_float { } @@ -8138,6 +8406,7 @@ declare var OES_texture_float: { prototype: OES_texture_float; new(): OES_texture_float; } + interface OES_texture_float_linear { } @@ -8145,6 +8414,7 @@ declare var OES_texture_float_linear: { prototype: OES_texture_float_linear; new(): OES_texture_float_linear; } + interface OES_texture_half_float { readonly HALF_FLOAT_OES: number; } @@ -8154,6 +8424,7 @@ declare var OES_texture_half_float: { new(): OES_texture_half_float; readonly HALF_FLOAT_OES: number; } + interface OES_texture_half_float_linear { } @@ -8161,6 +8432,7 @@ declare var OES_texture_half_float_linear: { prototype: OES_texture_half_float_linear; new(): OES_texture_half_float_linear; } + interface OfflineAudioCompletionEvent extends Event { readonly renderedBuffer: AudioBuffer; } @@ -8173,6 +8445,7 @@ declare var OfflineAudioCompletionEvent: { interface OfflineAudioContextEventMap extends AudioContextEventMap { "complete": OfflineAudioCompletionEvent; } + interface OfflineAudioContext extends AudioContextBase { readonly length: number; oncomplete: (this: OfflineAudioContext, ev: OfflineAudioCompletionEvent) => any; @@ -8190,6 +8463,7 @@ declare var OfflineAudioContext: { interface OscillatorNodeEventMap { "ended": MediaStreamErrorEvent; } + interface OscillatorNode extends AudioNode { readonly detune: AudioParam; readonly frequency: AudioParam; @@ -8206,6 +8480,7 @@ declare var OscillatorNode: { prototype: OscillatorNode; new(): OscillatorNode; } + interface OverflowEvent extends UIEvent { readonly horizontalOverflow: boolean; readonly orient: number; @@ -8222,6 +8497,7 @@ declare var OverflowEvent: { readonly HORIZONTAL: number; readonly VERTICAL: number; } + interface PageTransitionEvent extends Event { readonly persisted: boolean; } @@ -8230,6 +8506,7 @@ declare var PageTransitionEvent: { prototype: PageTransitionEvent; new(): PageTransitionEvent; } + interface PannerNode extends AudioNode { coneInnerAngle: number; coneOuterAngle: number; @@ -8248,6 +8525,7 @@ declare var PannerNode: { prototype: PannerNode; new(): PannerNode; } + interface Path2D extends Object, CanvasPathMethods { } @@ -8255,6 +8533,7 @@ declare var Path2D: { prototype: Path2D; new(path?: Path2D): Path2D; } + interface PaymentAddress { readonly addressLine: string[]; readonly city: string; @@ -8279,6 +8558,7 @@ interface PaymentRequestEventMap { "shippingaddresschange": Event; "shippingoptionchange": Event; } + interface PaymentRequest extends EventTarget { onshippingaddresschange: (this: PaymentRequest, ev: Event) => any; onshippingoptionchange: (this: PaymentRequest, ev: Event) => any; @@ -8295,6 +8575,7 @@ declare var PaymentRequest: { prototype: PaymentRequest; new(methodData: PaymentMethodData[], details: PaymentDetails, options?: PaymentOptions): PaymentRequest; } + interface PaymentRequestUpdateEvent extends Event { updateWith(d: Promise): void; } @@ -8303,6 +8584,7 @@ declare var PaymentRequestUpdateEvent: { prototype: PaymentRequestUpdateEvent; new(type: string, eventInitDict?: PaymentRequestUpdateEventInit): PaymentRequestUpdateEvent; } + interface PaymentResponse { readonly details: any; readonly methodName: string; @@ -8319,6 +8601,7 @@ declare var PaymentResponse: { prototype: PaymentResponse; new(): PaymentResponse; } + interface PerfWidgetExternal { readonly activeNetworkRequestCount: number; readonly averageFrameTime: number; @@ -8347,6 +8630,7 @@ declare var PerfWidgetExternal: { prototype: PerfWidgetExternal; new(): PerfWidgetExternal; } + interface Performance { readonly navigation: PerformanceNavigation; readonly timing: PerformanceTiming; @@ -8369,6 +8653,7 @@ declare var Performance: { prototype: Performance; new(): Performance; } + interface PerformanceEntry { readonly duration: number; readonly entryType: string; @@ -8380,6 +8665,7 @@ declare var PerformanceEntry: { prototype: PerformanceEntry; new(): PerformanceEntry; } + interface PerformanceMark extends PerformanceEntry { } @@ -8387,6 +8673,7 @@ declare var PerformanceMark: { prototype: PerformanceMark; new(): PerformanceMark; } + interface PerformanceMeasure extends PerformanceEntry { } @@ -8394,6 +8681,7 @@ declare var PerformanceMeasure: { prototype: PerformanceMeasure; new(): PerformanceMeasure; } + interface PerformanceNavigation { readonly redirectCount: number; readonly type: number; @@ -8412,6 +8700,7 @@ declare var PerformanceNavigation: { readonly TYPE_RELOAD: number; readonly TYPE_RESERVED: number; } + interface PerformanceNavigationTiming extends PerformanceEntry { readonly connectEnd: number; readonly connectStart: number; @@ -8441,6 +8730,7 @@ declare var PerformanceNavigationTiming: { prototype: PerformanceNavigationTiming; new(): PerformanceNavigationTiming; } + interface PerformanceResourceTiming extends PerformanceEntry { readonly connectEnd: number; readonly connectStart: number; @@ -8459,6 +8749,7 @@ declare var PerformanceResourceTiming: { prototype: PerformanceResourceTiming; new(): PerformanceResourceTiming; } + interface PerformanceTiming { readonly connectEnd: number; readonly connectStart: number; @@ -8489,6 +8780,7 @@ declare var PerformanceTiming: { prototype: PerformanceTiming; new(): PerformanceTiming; } + interface PeriodicWave { } @@ -8496,6 +8788,7 @@ declare var PeriodicWave: { prototype: PeriodicWave; new(): PeriodicWave; } + interface PermissionRequest extends DeferredPermissionRequest { readonly state: string; defer(): void; @@ -8505,6 +8798,7 @@ declare var PermissionRequest: { prototype: PermissionRequest; new(): PermissionRequest; } + interface PermissionRequestedEvent extends Event { readonly permissionRequest: PermissionRequest; } @@ -8513,6 +8807,7 @@ declare var PermissionRequestedEvent: { prototype: PermissionRequestedEvent; new(): PermissionRequestedEvent; } + interface Plugin { readonly description: string; readonly filename: string; @@ -8528,6 +8823,7 @@ declare var Plugin: { prototype: Plugin; new(): Plugin; } + interface PluginArray { readonly length: number; item(index: number): Plugin; @@ -8540,6 +8836,7 @@ declare var PluginArray: { prototype: PluginArray; new(): PluginArray; } + interface PointerEvent extends MouseEvent { readonly currentPoint: any; readonly height: number; @@ -8562,6 +8859,7 @@ declare var PointerEvent: { prototype: PointerEvent; new(typeArg: string, eventInitDict?: PointerEventInit): PointerEvent; } + interface PopStateEvent extends Event { readonly state: any; initPopStateEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, stateArg: any): void; @@ -8571,6 +8869,7 @@ declare var PopStateEvent: { prototype: PopStateEvent; new(typeArg: string, eventInitDict?: PopStateEventInit): PopStateEvent; } + interface Position { readonly coords: Coordinates; readonly timestamp: number; @@ -8580,6 +8879,7 @@ declare var Position: { prototype: Position; new(): Position; } + interface PositionError { readonly code: number; readonly message: string; @@ -8596,6 +8896,7 @@ declare var PositionError: { readonly POSITION_UNAVAILABLE: number; readonly TIMEOUT: number; } + interface ProcessingInstruction extends CharacterData { readonly target: string; } @@ -8604,6 +8905,7 @@ declare var ProcessingInstruction: { prototype: ProcessingInstruction; new(): ProcessingInstruction; } + interface ProgressEvent extends Event { readonly lengthComputable: boolean; readonly loaded: number; @@ -8615,6 +8917,7 @@ declare var ProgressEvent: { prototype: ProgressEvent; new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent; } + interface PushManager { getSubscription(): Promise; permissionState(options?: PushSubscriptionOptionsInit): Promise; @@ -8625,6 +8928,7 @@ declare var PushManager: { prototype: PushManager; new(): PushManager; } + interface PushSubscription { readonly endpoint: USVString; readonly options: PushSubscriptionOptions; @@ -8637,6 +8941,7 @@ declare var PushSubscription: { prototype: PushSubscription; new(): PushSubscription; } + interface PushSubscriptionOptions { readonly applicationServerKey: ArrayBuffer | null; readonly userVisibleOnly: boolean; @@ -8646,6 +8951,7 @@ declare var PushSubscriptionOptions: { prototype: PushSubscriptionOptions; new(): PushSubscriptionOptions; } + interface RTCDTMFToneChangeEvent extends Event { readonly tone: string; } @@ -8659,6 +8965,7 @@ interface RTCDtlsTransportEventMap { "dtlsstatechange": RTCDtlsTransportStateChangedEvent; "error": Event; } + interface RTCDtlsTransport extends RTCStatsProvider { ondtlsstatechange: ((this: RTCDtlsTransport, ev: RTCDtlsTransportStateChangedEvent) => any) | null; onerror: ((this: RTCDtlsTransport, ev: Event) => any) | null; @@ -8677,6 +8984,7 @@ declare var RTCDtlsTransport: { prototype: RTCDtlsTransport; new(transport: RTCIceTransport): RTCDtlsTransport; } + interface RTCDtlsTransportStateChangedEvent extends Event { readonly state: string; } @@ -8689,6 +8997,7 @@ declare var RTCDtlsTransportStateChangedEvent: { interface RTCDtmfSenderEventMap { "tonechange": RTCDTMFToneChangeEvent; } + interface RTCDtmfSender extends EventTarget { readonly canInsertDTMF: boolean; readonly duration: number; @@ -8705,6 +9014,7 @@ declare var RTCDtmfSender: { prototype: RTCDtmfSender; new(sender: RTCRtpSender): RTCDtmfSender; } + interface RTCIceCandidate { candidate: string | null; sdpMLineIndex: number | null; @@ -8716,6 +9026,7 @@ declare var RTCIceCandidate: { prototype: RTCIceCandidate; new(candidateInitDict?: RTCIceCandidateInit): RTCIceCandidate; } + interface RTCIceCandidatePairChangedEvent extends Event { readonly pair: RTCIceCandidatePair; } @@ -8729,6 +9040,7 @@ interface RTCIceGathererEventMap { "error": Event; "localcandidate": RTCIceGathererEvent; } + interface RTCIceGatherer extends RTCStatsProvider { readonly component: string; onerror: ((this: RTCIceGatherer, ev: Event) => any) | null; @@ -8744,6 +9056,7 @@ declare var RTCIceGatherer: { prototype: RTCIceGatherer; new(options: RTCIceGatherOptions): RTCIceGatherer; } + interface RTCIceGathererEvent extends Event { readonly candidate: RTCIceCandidateDictionary | RTCIceCandidateComplete; } @@ -8757,6 +9070,7 @@ interface RTCIceTransportEventMap { "candidatepairchange": RTCIceCandidatePairChangedEvent; "icestatechange": RTCIceTransportStateChangedEvent; } + interface RTCIceTransport extends RTCStatsProvider { readonly component: string; readonly iceGatherer: RTCIceGatherer | null; @@ -8780,6 +9094,7 @@ declare var RTCIceTransport: { prototype: RTCIceTransport; new(): RTCIceTransport; } + interface RTCIceTransportStateChangedEvent extends Event { readonly state: string; } @@ -8798,6 +9113,7 @@ interface RTCPeerConnectionEventMap { "removestream": MediaStreamEvent; "signalingstatechange": Event; } + interface RTCPeerConnection extends EventTarget { readonly canTrickleIceCandidates: boolean | null; readonly iceConnectionState: string; @@ -8833,6 +9149,7 @@ declare var RTCPeerConnection: { prototype: RTCPeerConnection; new(configuration: RTCConfiguration): RTCPeerConnection; } + interface RTCPeerConnectionIceEvent extends Event { readonly candidate: RTCIceCandidate; } @@ -8845,6 +9162,7 @@ declare var RTCPeerConnectionIceEvent: { interface RTCRtpReceiverEventMap { "error": Event; } + interface RTCRtpReceiver extends RTCStatsProvider { onerror: ((this: RTCRtpReceiver, ev: Event) => any) | null; readonly rtcpTransport: RTCDtlsTransport; @@ -8869,6 +9187,7 @@ interface RTCRtpSenderEventMap { "error": Event; "ssrcconflict": RTCSsrcConflictEvent; } + interface RTCRtpSender extends RTCStatsProvider { onerror: ((this: RTCRtpSender, ev: Event) => any) | null; onssrcconflict: ((this: RTCRtpSender, ev: RTCSsrcConflictEvent) => any) | null; @@ -8888,6 +9207,7 @@ declare var RTCRtpSender: { new(track: MediaStreamTrack, transport: RTCDtlsTransport | RTCSrtpSdesTransport, rtcpTransport?: RTCDtlsTransport): RTCRtpSender; getCapabilities(kind?: string): RTCRtpCapabilities; } + interface RTCSessionDescription { sdp: string | null; type: string | null; @@ -8902,6 +9222,7 @@ declare var RTCSessionDescription: { interface RTCSrtpSdesTransportEventMap { "error": Event; } + interface RTCSrtpSdesTransport extends EventTarget { onerror: ((this: RTCSrtpSdesTransport, ev: Event) => any) | null; readonly transport: RTCIceTransport; @@ -8914,6 +9235,7 @@ declare var RTCSrtpSdesTransport: { new(transport: RTCIceTransport, encryptParameters: RTCSrtpSdesParameters, decryptParameters: RTCSrtpSdesParameters): RTCSrtpSdesTransport; getLocalParameters(): RTCSrtpSdesParameters[]; } + interface RTCSsrcConflictEvent extends Event { readonly ssrc: number; } @@ -8922,6 +9244,7 @@ declare var RTCSsrcConflictEvent: { prototype: RTCSsrcConflictEvent; new(): RTCSsrcConflictEvent; } + interface RTCStatsProvider extends EventTarget { getStats(): Promise; msGetStats(): Promise; @@ -8931,6 +9254,7 @@ declare var RTCStatsProvider: { prototype: RTCStatsProvider; new(): RTCStatsProvider; } + interface Range { readonly collapsed: boolean; readonly commonAncestorContainer: Node; @@ -8974,6 +9298,7 @@ declare var Range: { readonly START_TO_END: number; readonly START_TO_START: number; } + interface ReadableStream { readonly locked: boolean; cancel(): Promise; @@ -8984,6 +9309,7 @@ declare var ReadableStream: { prototype: ReadableStream; new(): ReadableStream; } + interface ReadableStreamReader { cancel(): Promise; read(): Promise; @@ -8994,6 +9320,7 @@ declare var ReadableStreamReader: { prototype: ReadableStreamReader; new(): ReadableStreamReader; } + interface Request extends Object, Body { readonly cache: string; readonly credentials: string; @@ -9015,6 +9342,7 @@ declare var Request: { prototype: Request; new(input: Request | string, init?: RequestInit): Request; } + interface Response extends Object, Body { readonly body: ReadableStream | null; readonly headers: Headers; @@ -9030,6 +9358,7 @@ declare var Response: { prototype: Response; new(body?: any, init?: ResponseInit): Response; } + interface SVGAElement extends SVGGraphicsElement, SVGURIReference { readonly target: SVGAnimatedString; addEventListener(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; @@ -9040,6 +9369,7 @@ declare var SVGAElement: { prototype: SVGAElement; new(): SVGAElement; } + interface SVGAngle { readonly unitType: number; value: number; @@ -9063,6 +9393,7 @@ declare var SVGAngle: { readonly SVG_ANGLETYPE_UNKNOWN: number; readonly SVG_ANGLETYPE_UNSPECIFIED: number; } + interface SVGAnimatedAngle { readonly animVal: SVGAngle; readonly baseVal: SVGAngle; @@ -9072,6 +9403,7 @@ declare var SVGAnimatedAngle: { prototype: SVGAnimatedAngle; new(): SVGAnimatedAngle; } + interface SVGAnimatedBoolean { readonly animVal: boolean; baseVal: boolean; @@ -9081,6 +9413,7 @@ declare var SVGAnimatedBoolean: { prototype: SVGAnimatedBoolean; new(): SVGAnimatedBoolean; } + interface SVGAnimatedEnumeration { readonly animVal: number; baseVal: number; @@ -9090,6 +9423,7 @@ declare var SVGAnimatedEnumeration: { prototype: SVGAnimatedEnumeration; new(): SVGAnimatedEnumeration; } + interface SVGAnimatedInteger { readonly animVal: number; baseVal: number; @@ -9099,6 +9433,7 @@ declare var SVGAnimatedInteger: { prototype: SVGAnimatedInteger; new(): SVGAnimatedInteger; } + interface SVGAnimatedLength { readonly animVal: SVGLength; readonly baseVal: SVGLength; @@ -9108,6 +9443,7 @@ declare var SVGAnimatedLength: { prototype: SVGAnimatedLength; new(): SVGAnimatedLength; } + interface SVGAnimatedLengthList { readonly animVal: SVGLengthList; readonly baseVal: SVGLengthList; @@ -9117,6 +9453,7 @@ declare var SVGAnimatedLengthList: { prototype: SVGAnimatedLengthList; new(): SVGAnimatedLengthList; } + interface SVGAnimatedNumber { readonly animVal: number; baseVal: number; @@ -9126,6 +9463,7 @@ declare var SVGAnimatedNumber: { prototype: SVGAnimatedNumber; new(): SVGAnimatedNumber; } + interface SVGAnimatedNumberList { readonly animVal: SVGNumberList; readonly baseVal: SVGNumberList; @@ -9135,6 +9473,7 @@ declare var SVGAnimatedNumberList: { prototype: SVGAnimatedNumberList; new(): SVGAnimatedNumberList; } + interface SVGAnimatedPreserveAspectRatio { readonly animVal: SVGPreserveAspectRatio; readonly baseVal: SVGPreserveAspectRatio; @@ -9144,6 +9483,7 @@ declare var SVGAnimatedPreserveAspectRatio: { prototype: SVGAnimatedPreserveAspectRatio; new(): SVGAnimatedPreserveAspectRatio; } + interface SVGAnimatedRect { readonly animVal: SVGRect; readonly baseVal: SVGRect; @@ -9153,6 +9493,7 @@ declare var SVGAnimatedRect: { prototype: SVGAnimatedRect; new(): SVGAnimatedRect; } + interface SVGAnimatedString { readonly animVal: string; baseVal: string; @@ -9162,6 +9503,7 @@ declare var SVGAnimatedString: { prototype: SVGAnimatedString; new(): SVGAnimatedString; } + interface SVGAnimatedTransformList { readonly animVal: SVGTransformList; readonly baseVal: SVGTransformList; @@ -9171,6 +9513,7 @@ declare var SVGAnimatedTransformList: { prototype: SVGAnimatedTransformList; new(): SVGAnimatedTransformList; } + interface SVGCircleElement extends SVGGraphicsElement { readonly cx: SVGAnimatedLength; readonly cy: SVGAnimatedLength; @@ -9183,6 +9526,7 @@ declare var SVGCircleElement: { prototype: SVGCircleElement; new(): SVGCircleElement; } + interface SVGClipPathElement extends SVGGraphicsElement, SVGUnitTypes { readonly clipPathUnits: SVGAnimatedEnumeration; addEventListener(type: K, listener: (this: SVGClipPathElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; @@ -9193,6 +9537,7 @@ declare var SVGClipPathElement: { prototype: SVGClipPathElement; new(): SVGClipPathElement; } + interface SVGComponentTransferFunctionElement extends SVGElement { readonly amplitude: SVGAnimatedNumber; readonly exponent: SVGAnimatedNumber; @@ -9221,6 +9566,7 @@ declare var SVGComponentTransferFunctionElement: { readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: number; readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: number; } + interface SVGDefsElement extends SVGGraphicsElement { addEventListener(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; @@ -9230,6 +9576,7 @@ declare var SVGDefsElement: { prototype: SVGDefsElement; new(): SVGDefsElement; } + interface SVGDescElement extends SVGElement { addEventListener(type: K, listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; @@ -9252,6 +9599,7 @@ interface SVGElementEventMap extends ElementEventMap { "mouseover": MouseEvent; "mouseup": MouseEvent; } + interface SVGElement extends Element { className: any; onclick: (this: SVGElement, ev: MouseEvent) => any; @@ -9276,6 +9624,7 @@ declare var SVGElement: { prototype: SVGElement; new(): SVGElement; } + interface SVGElementInstance extends EventTarget { readonly childNodes: SVGElementInstanceList; readonly correspondingElement: SVGElement; @@ -9291,6 +9640,7 @@ declare var SVGElementInstance: { prototype: SVGElementInstance; new(): SVGElementInstance; } + interface SVGElementInstanceList { readonly length: number; item(index: number): SVGElementInstance; @@ -9300,6 +9650,7 @@ declare var SVGElementInstanceList: { prototype: SVGElementInstanceList; new(): SVGElementInstanceList; } + interface SVGEllipseElement extends SVGGraphicsElement { readonly cx: SVGAnimatedLength; readonly cy: SVGAnimatedLength; @@ -9313,6 +9664,7 @@ declare var SVGEllipseElement: { prototype: SVGEllipseElement; new(): SVGEllipseElement; } + interface SVGFEBlendElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { readonly in1: SVGAnimatedString; readonly in2: SVGAnimatedString; @@ -9359,6 +9711,7 @@ declare var SVGFEBlendElement: { readonly SVG_FEBLEND_MODE_SOFT_LIGHT: number; readonly SVG_FEBLEND_MODE_UNKNOWN: number; } + interface SVGFEColorMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { readonly in1: SVGAnimatedString; readonly type: SVGAnimatedEnumeration; @@ -9381,6 +9734,7 @@ declare var SVGFEColorMatrixElement: { readonly SVG_FECOLORMATRIX_TYPE_SATURATE: number; readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: number; } + interface SVGFEComponentTransferElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { readonly in1: SVGAnimatedString; addEventListener(type: K, listener: (this: SVGFEComponentTransferElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; @@ -9391,6 +9745,7 @@ declare var SVGFEComponentTransferElement: { prototype: SVGFEComponentTransferElement; new(): SVGFEComponentTransferElement; } + interface SVGFECompositeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { readonly in1: SVGAnimatedString; readonly in2: SVGAnimatedString; @@ -9421,6 +9776,7 @@ declare var SVGFECompositeElement: { readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: number; readonly SVG_FECOMPOSITE_OPERATOR_XOR: number; } + interface SVGFEConvolveMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { readonly bias: SVGAnimatedNumber; readonly divisor: SVGAnimatedNumber; @@ -9450,6 +9806,7 @@ declare var SVGFEConvolveMatrixElement: { readonly SVG_EDGEMODE_UNKNOWN: number; readonly SVG_EDGEMODE_WRAP: number; } + interface SVGFEDiffuseLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { readonly diffuseConstant: SVGAnimatedNumber; readonly in1: SVGAnimatedString; @@ -9464,6 +9821,7 @@ declare var SVGFEDiffuseLightingElement: { prototype: SVGFEDiffuseLightingElement; new(): SVGFEDiffuseLightingElement; } + interface SVGFEDisplacementMapElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { readonly in1: SVGAnimatedString; readonly in2: SVGAnimatedString; @@ -9488,6 +9846,7 @@ declare var SVGFEDisplacementMapElement: { readonly SVG_CHANNEL_R: number; readonly SVG_CHANNEL_UNKNOWN: number; } + interface SVGFEDistantLightElement extends SVGElement { readonly azimuth: SVGAnimatedNumber; readonly elevation: SVGAnimatedNumber; @@ -9499,6 +9858,7 @@ declare var SVGFEDistantLightElement: { prototype: SVGFEDistantLightElement; new(): SVGFEDistantLightElement; } + interface SVGFEFloodElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { addEventListener(type: K, listener: (this: SVGFEFloodElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; @@ -9508,6 +9868,7 @@ declare var SVGFEFloodElement: { prototype: SVGFEFloodElement; new(): SVGFEFloodElement; } + interface SVGFEFuncAElement extends SVGComponentTransferFunctionElement { addEventListener(type: K, listener: (this: SVGFEFuncAElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; @@ -9517,6 +9878,7 @@ declare var SVGFEFuncAElement: { prototype: SVGFEFuncAElement; new(): SVGFEFuncAElement; } + interface SVGFEFuncBElement extends SVGComponentTransferFunctionElement { addEventListener(type: K, listener: (this: SVGFEFuncBElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; @@ -9526,6 +9888,7 @@ declare var SVGFEFuncBElement: { prototype: SVGFEFuncBElement; new(): SVGFEFuncBElement; } + interface SVGFEFuncGElement extends SVGComponentTransferFunctionElement { addEventListener(type: K, listener: (this: SVGFEFuncGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; @@ -9535,6 +9898,7 @@ declare var SVGFEFuncGElement: { prototype: SVGFEFuncGElement; new(): SVGFEFuncGElement; } + interface SVGFEFuncRElement extends SVGComponentTransferFunctionElement { addEventListener(type: K, listener: (this: SVGFEFuncRElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; @@ -9544,6 +9908,7 @@ declare var SVGFEFuncRElement: { prototype: SVGFEFuncRElement; new(): SVGFEFuncRElement; } + interface SVGFEGaussianBlurElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { readonly in1: SVGAnimatedString; readonly stdDeviationX: SVGAnimatedNumber; @@ -9557,6 +9922,7 @@ declare var SVGFEGaussianBlurElement: { prototype: SVGFEGaussianBlurElement; new(): SVGFEGaussianBlurElement; } + interface SVGFEImageElement extends SVGElement, SVGFilterPrimitiveStandardAttributes, SVGURIReference { readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio; addEventListener(type: K, listener: (this: SVGFEImageElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; @@ -9567,6 +9933,7 @@ declare var SVGFEImageElement: { prototype: SVGFEImageElement; new(): SVGFEImageElement; } + interface SVGFEMergeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { addEventListener(type: K, listener: (this: SVGFEMergeElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; @@ -9576,6 +9943,7 @@ declare var SVGFEMergeElement: { prototype: SVGFEMergeElement; new(): SVGFEMergeElement; } + interface SVGFEMergeNodeElement extends SVGElement { readonly in1: SVGAnimatedString; addEventListener(type: K, listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; @@ -9586,6 +9954,7 @@ declare var SVGFEMergeNodeElement: { prototype: SVGFEMergeNodeElement; new(): SVGFEMergeNodeElement; } + interface SVGFEMorphologyElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { readonly in1: SVGAnimatedString; readonly operator: SVGAnimatedEnumeration; @@ -9605,6 +9974,7 @@ declare var SVGFEMorphologyElement: { readonly SVG_MORPHOLOGY_OPERATOR_ERODE: number; readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: number; } + interface SVGFEOffsetElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { readonly dx: SVGAnimatedNumber; readonly dy: SVGAnimatedNumber; @@ -9617,6 +9987,7 @@ declare var SVGFEOffsetElement: { prototype: SVGFEOffsetElement; new(): SVGFEOffsetElement; } + interface SVGFEPointLightElement extends SVGElement { readonly x: SVGAnimatedNumber; readonly y: SVGAnimatedNumber; @@ -9629,6 +10000,7 @@ declare var SVGFEPointLightElement: { prototype: SVGFEPointLightElement; new(): SVGFEPointLightElement; } + interface SVGFESpecularLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { readonly in1: SVGAnimatedString; readonly kernelUnitLengthX: SVGAnimatedNumber; @@ -9644,6 +10016,7 @@ declare var SVGFESpecularLightingElement: { prototype: SVGFESpecularLightingElement; new(): SVGFESpecularLightingElement; } + interface SVGFESpotLightElement extends SVGElement { readonly limitingConeAngle: SVGAnimatedNumber; readonly pointsAtX: SVGAnimatedNumber; @@ -9661,6 +10034,7 @@ declare var SVGFESpotLightElement: { prototype: SVGFESpotLightElement; new(): SVGFESpotLightElement; } + interface SVGFETileElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { readonly in1: SVGAnimatedString; addEventListener(type: K, listener: (this: SVGFETileElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; @@ -9671,6 +10045,7 @@ declare var SVGFETileElement: { prototype: SVGFETileElement; new(): SVGFETileElement; } + interface SVGFETurbulenceElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { readonly baseFrequencyX: SVGAnimatedNumber; readonly baseFrequencyY: SVGAnimatedNumber; @@ -9698,6 +10073,7 @@ declare var SVGFETurbulenceElement: { readonly SVG_TURBULENCE_TYPE_TURBULENCE: number; readonly SVG_TURBULENCE_TYPE_UNKNOWN: number; } + interface SVGFilterElement extends SVGElement, SVGUnitTypes, SVGURIReference { readonly filterResX: SVGAnimatedInteger; readonly filterResY: SVGAnimatedInteger; @@ -9716,6 +10092,7 @@ declare var SVGFilterElement: { prototype: SVGFilterElement; new(): SVGFilterElement; } + interface SVGForeignObjectElement extends SVGGraphicsElement { readonly height: SVGAnimatedLength; readonly width: SVGAnimatedLength; @@ -9729,6 +10106,7 @@ declare var SVGForeignObjectElement: { prototype: SVGForeignObjectElement; new(): SVGForeignObjectElement; } + interface SVGGElement extends SVGGraphicsElement { addEventListener(type: K, listener: (this: SVGGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; @@ -9738,6 +10116,7 @@ declare var SVGGElement: { prototype: SVGGElement; new(): SVGGElement; } + interface SVGGradientElement extends SVGElement, SVGUnitTypes, SVGURIReference { readonly gradientTransform: SVGAnimatedTransformList; readonly gradientUnits: SVGAnimatedEnumeration; @@ -9758,6 +10137,7 @@ declare var SVGGradientElement: { readonly SVG_SPREADMETHOD_REPEAT: number; readonly SVG_SPREADMETHOD_UNKNOWN: number; } + interface SVGGraphicsElement extends SVGElement, SVGTests { readonly farthestViewportElement: SVGElement; readonly nearestViewportElement: SVGElement; @@ -9774,6 +10154,7 @@ declare var SVGGraphicsElement: { prototype: SVGGraphicsElement; new(): SVGGraphicsElement; } + interface SVGImageElement extends SVGGraphicsElement, SVGURIReference { readonly height: SVGAnimatedLength; readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio; @@ -9788,6 +10169,7 @@ declare var SVGImageElement: { prototype: SVGImageElement; new(): SVGImageElement; } + interface SVGLength { readonly unitType: number; value: number; @@ -9823,6 +10205,7 @@ declare var SVGLength: { readonly SVG_LENGTHTYPE_PX: number; readonly SVG_LENGTHTYPE_UNKNOWN: number; } + interface SVGLengthList { readonly numberOfItems: number; appendItem(newItem: SVGLength): SVGLength; @@ -9838,6 +10221,7 @@ declare var SVGLengthList: { prototype: SVGLengthList; new(): SVGLengthList; } + interface SVGLineElement extends SVGGraphicsElement { readonly x1: SVGAnimatedLength; readonly x2: SVGAnimatedLength; @@ -9851,6 +10235,7 @@ declare var SVGLineElement: { prototype: SVGLineElement; new(): SVGLineElement; } + interface SVGLinearGradientElement extends SVGGradientElement { readonly x1: SVGAnimatedLength; readonly x2: SVGAnimatedLength; @@ -9864,6 +10249,7 @@ declare var SVGLinearGradientElement: { prototype: SVGLinearGradientElement; new(): SVGLinearGradientElement; } + interface SVGMarkerElement extends SVGElement, SVGFitToViewBox { readonly markerHeight: SVGAnimatedLength; readonly markerUnits: SVGAnimatedEnumeration; @@ -9894,6 +10280,7 @@ declare var SVGMarkerElement: { readonly SVG_MARKER_ORIENT_AUTO: number; readonly SVG_MARKER_ORIENT_UNKNOWN: number; } + interface SVGMaskElement extends SVGElement, SVGTests, SVGUnitTypes { readonly height: SVGAnimatedLength; readonly maskContentUnits: SVGAnimatedEnumeration; @@ -9909,6 +10296,7 @@ declare var SVGMaskElement: { prototype: SVGMaskElement; new(): SVGMaskElement; } + interface SVGMatrix { a: number; b: number; @@ -9933,6 +10321,7 @@ declare var SVGMatrix: { prototype: SVGMatrix; new(): SVGMatrix; } + interface SVGMetadataElement extends SVGElement { addEventListener(type: K, listener: (this: SVGMetadataElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; @@ -9942,6 +10331,7 @@ declare var SVGMetadataElement: { prototype: SVGMetadataElement; new(): SVGMetadataElement; } + interface SVGNumber { value: number; } @@ -9950,6 +10340,7 @@ declare var SVGNumber: { prototype: SVGNumber; new(): SVGNumber; } + interface SVGNumberList { readonly numberOfItems: number; appendItem(newItem: SVGNumber): SVGNumber; @@ -9965,6 +10356,7 @@ declare var SVGNumberList: { prototype: SVGNumberList; new(): SVGNumberList; } + interface SVGPathElement extends SVGGraphicsElement { readonly pathSegList: SVGPathSegList; createSVGPathSegArcAbs(x: number, y: number, r1: number, r2: number, angle: number, largeArcFlag: boolean, sweepFlag: boolean): SVGPathSegArcAbs; @@ -9997,6 +10389,7 @@ declare var SVGPathElement: { prototype: SVGPathElement; new(): SVGPathElement; } + interface SVGPathSeg { readonly pathSegType: number; readonly pathSegTypeAsLetter: string; @@ -10046,6 +10439,7 @@ declare var SVGPathSeg: { readonly PATHSEG_MOVETO_REL: number; readonly PATHSEG_UNKNOWN: number; } + interface SVGPathSegArcAbs extends SVGPathSeg { angle: number; largeArcFlag: boolean; @@ -10060,6 +10454,7 @@ declare var SVGPathSegArcAbs: { prototype: SVGPathSegArcAbs; new(): SVGPathSegArcAbs; } + interface SVGPathSegArcRel extends SVGPathSeg { angle: number; largeArcFlag: boolean; @@ -10074,6 +10469,7 @@ declare var SVGPathSegArcRel: { prototype: SVGPathSegArcRel; new(): SVGPathSegArcRel; } + interface SVGPathSegClosePath extends SVGPathSeg { } @@ -10081,6 +10477,7 @@ declare var SVGPathSegClosePath: { prototype: SVGPathSegClosePath; new(): SVGPathSegClosePath; } + interface SVGPathSegCurvetoCubicAbs extends SVGPathSeg { x: number; x1: number; @@ -10094,6 +10491,7 @@ declare var SVGPathSegCurvetoCubicAbs: { prototype: SVGPathSegCurvetoCubicAbs; new(): SVGPathSegCurvetoCubicAbs; } + interface SVGPathSegCurvetoCubicRel extends SVGPathSeg { x: number; x1: number; @@ -10107,6 +10505,7 @@ declare var SVGPathSegCurvetoCubicRel: { prototype: SVGPathSegCurvetoCubicRel; new(): SVGPathSegCurvetoCubicRel; } + interface SVGPathSegCurvetoCubicSmoothAbs extends SVGPathSeg { x: number; x2: number; @@ -10118,6 +10517,7 @@ declare var SVGPathSegCurvetoCubicSmoothAbs: { prototype: SVGPathSegCurvetoCubicSmoothAbs; new(): SVGPathSegCurvetoCubicSmoothAbs; } + interface SVGPathSegCurvetoCubicSmoothRel extends SVGPathSeg { x: number; x2: number; @@ -10129,6 +10529,7 @@ declare var SVGPathSegCurvetoCubicSmoothRel: { prototype: SVGPathSegCurvetoCubicSmoothRel; new(): SVGPathSegCurvetoCubicSmoothRel; } + interface SVGPathSegCurvetoQuadraticAbs extends SVGPathSeg { x: number; x1: number; @@ -10140,6 +10541,7 @@ declare var SVGPathSegCurvetoQuadraticAbs: { prototype: SVGPathSegCurvetoQuadraticAbs; new(): SVGPathSegCurvetoQuadraticAbs; } + interface SVGPathSegCurvetoQuadraticRel extends SVGPathSeg { x: number; x1: number; @@ -10151,6 +10553,7 @@ declare var SVGPathSegCurvetoQuadraticRel: { prototype: SVGPathSegCurvetoQuadraticRel; new(): SVGPathSegCurvetoQuadraticRel; } + interface SVGPathSegCurvetoQuadraticSmoothAbs extends SVGPathSeg { x: number; y: number; @@ -10160,6 +10563,7 @@ declare var SVGPathSegCurvetoQuadraticSmoothAbs: { prototype: SVGPathSegCurvetoQuadraticSmoothAbs; new(): SVGPathSegCurvetoQuadraticSmoothAbs; } + interface SVGPathSegCurvetoQuadraticSmoothRel extends SVGPathSeg { x: number; y: number; @@ -10169,6 +10573,7 @@ declare var SVGPathSegCurvetoQuadraticSmoothRel: { prototype: SVGPathSegCurvetoQuadraticSmoothRel; new(): SVGPathSegCurvetoQuadraticSmoothRel; } + interface SVGPathSegLinetoAbs extends SVGPathSeg { x: number; y: number; @@ -10178,6 +10583,7 @@ declare var SVGPathSegLinetoAbs: { prototype: SVGPathSegLinetoAbs; new(): SVGPathSegLinetoAbs; } + interface SVGPathSegLinetoHorizontalAbs extends SVGPathSeg { x: number; } @@ -10186,6 +10592,7 @@ declare var SVGPathSegLinetoHorizontalAbs: { prototype: SVGPathSegLinetoHorizontalAbs; new(): SVGPathSegLinetoHorizontalAbs; } + interface SVGPathSegLinetoHorizontalRel extends SVGPathSeg { x: number; } @@ -10194,6 +10601,7 @@ declare var SVGPathSegLinetoHorizontalRel: { prototype: SVGPathSegLinetoHorizontalRel; new(): SVGPathSegLinetoHorizontalRel; } + interface SVGPathSegLinetoRel extends SVGPathSeg { x: number; y: number; @@ -10203,6 +10611,7 @@ declare var SVGPathSegLinetoRel: { prototype: SVGPathSegLinetoRel; new(): SVGPathSegLinetoRel; } + interface SVGPathSegLinetoVerticalAbs extends SVGPathSeg { y: number; } @@ -10211,6 +10620,7 @@ declare var SVGPathSegLinetoVerticalAbs: { prototype: SVGPathSegLinetoVerticalAbs; new(): SVGPathSegLinetoVerticalAbs; } + interface SVGPathSegLinetoVerticalRel extends SVGPathSeg { y: number; } @@ -10219,6 +10629,7 @@ declare var SVGPathSegLinetoVerticalRel: { prototype: SVGPathSegLinetoVerticalRel; new(): SVGPathSegLinetoVerticalRel; } + interface SVGPathSegList { readonly numberOfItems: number; appendItem(newItem: SVGPathSeg): SVGPathSeg; @@ -10234,6 +10645,7 @@ declare var SVGPathSegList: { prototype: SVGPathSegList; new(): SVGPathSegList; } + interface SVGPathSegMovetoAbs extends SVGPathSeg { x: number; y: number; @@ -10243,6 +10655,7 @@ declare var SVGPathSegMovetoAbs: { prototype: SVGPathSegMovetoAbs; new(): SVGPathSegMovetoAbs; } + interface SVGPathSegMovetoRel extends SVGPathSeg { x: number; y: number; @@ -10252,6 +10665,7 @@ declare var SVGPathSegMovetoRel: { prototype: SVGPathSegMovetoRel; new(): SVGPathSegMovetoRel; } + interface SVGPatternElement extends SVGElement, SVGTests, SVGUnitTypes, SVGFitToViewBox, SVGURIReference { readonly height: SVGAnimatedLength; readonly patternContentUnits: SVGAnimatedEnumeration; @@ -10268,6 +10682,7 @@ declare var SVGPatternElement: { prototype: SVGPatternElement; new(): SVGPatternElement; } + interface SVGPoint { x: number; y: number; @@ -10278,6 +10693,7 @@ declare var SVGPoint: { prototype: SVGPoint; new(): SVGPoint; } + interface SVGPointList { readonly numberOfItems: number; appendItem(newItem: SVGPoint): SVGPoint; @@ -10293,6 +10709,7 @@ declare var SVGPointList: { prototype: SVGPointList; new(): SVGPointList; } + interface SVGPolygonElement extends SVGGraphicsElement, SVGAnimatedPoints { addEventListener(type: K, listener: (this: SVGPolygonElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; @@ -10302,6 +10719,7 @@ declare var SVGPolygonElement: { prototype: SVGPolygonElement; new(): SVGPolygonElement; } + interface SVGPolylineElement extends SVGGraphicsElement, SVGAnimatedPoints { addEventListener(type: K, listener: (this: SVGPolylineElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; @@ -10311,6 +10729,7 @@ declare var SVGPolylineElement: { prototype: SVGPolylineElement; new(): SVGPolylineElement; } + interface SVGPreserveAspectRatio { align: number; meetOrSlice: number; @@ -10348,6 +10767,7 @@ declare var SVGPreserveAspectRatio: { readonly SVG_PRESERVEASPECTRATIO_XMINYMID: number; readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: number; } + interface SVGRadialGradientElement extends SVGGradientElement { readonly cx: SVGAnimatedLength; readonly cy: SVGAnimatedLength; @@ -10362,6 +10782,7 @@ declare var SVGRadialGradientElement: { prototype: SVGRadialGradientElement; new(): SVGRadialGradientElement; } + interface SVGRect { height: number; width: number; @@ -10373,6 +10794,7 @@ declare var SVGRect: { prototype: SVGRect; new(): SVGRect; } + interface SVGRectElement extends SVGGraphicsElement { readonly height: SVGAnimatedLength; readonly rx: SVGAnimatedLength; @@ -10397,6 +10819,7 @@ interface SVGSVGElementEventMap extends SVGElementEventMap { "SVGUnload": Event; "SVGZoom": SVGZoomEvent; } + interface SVGSVGElement extends SVGGraphicsElement, DocumentEvent, SVGFitToViewBox, SVGZoomAndPan { contentScriptType: string; contentStyleType: string; @@ -10448,6 +10871,7 @@ declare var SVGSVGElement: { prototype: SVGSVGElement; new(): SVGSVGElement; } + interface SVGScriptElement extends SVGElement, SVGURIReference { type: string; addEventListener(type: K, listener: (this: SVGScriptElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; @@ -10458,6 +10882,7 @@ declare var SVGScriptElement: { prototype: SVGScriptElement; new(): SVGScriptElement; } + interface SVGStopElement extends SVGElement { readonly offset: SVGAnimatedNumber; addEventListener(type: K, listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; @@ -10468,6 +10893,7 @@ declare var SVGStopElement: { prototype: SVGStopElement; new(): SVGStopElement; } + interface SVGStringList { readonly numberOfItems: number; appendItem(newItem: string): string; @@ -10483,6 +10909,7 @@ declare var SVGStringList: { prototype: SVGStringList; new(): SVGStringList; } + interface SVGStyleElement extends SVGElement { disabled: boolean; media: string; @@ -10496,6 +10923,7 @@ declare var SVGStyleElement: { prototype: SVGStyleElement; new(): SVGStyleElement; } + interface SVGSwitchElement extends SVGGraphicsElement { addEventListener(type: K, listener: (this: SVGSwitchElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; @@ -10505,6 +10933,7 @@ declare var SVGSwitchElement: { prototype: SVGSwitchElement; new(): SVGSwitchElement; } + interface SVGSymbolElement extends SVGElement, SVGFitToViewBox { addEventListener(type: K, listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; @@ -10514,6 +10943,7 @@ declare var SVGSymbolElement: { prototype: SVGSymbolElement; new(): SVGSymbolElement; } + interface SVGTSpanElement extends SVGTextPositioningElement { addEventListener(type: K, listener: (this: SVGTSpanElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; @@ -10523,6 +10953,7 @@ declare var SVGTSpanElement: { prototype: SVGTSpanElement; new(): SVGTSpanElement; } + interface SVGTextContentElement extends SVGGraphicsElement { readonly lengthAdjust: SVGAnimatedEnumeration; readonly textLength: SVGAnimatedLength; @@ -10549,6 +10980,7 @@ declare var SVGTextContentElement: { readonly LENGTHADJUST_SPACINGANDGLYPHS: number; readonly LENGTHADJUST_UNKNOWN: number; } + interface SVGTextElement extends SVGTextPositioningElement { addEventListener(type: K, listener: (this: SVGTextElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; @@ -10558,6 +10990,7 @@ declare var SVGTextElement: { prototype: SVGTextElement; new(): SVGTextElement; } + interface SVGTextPathElement extends SVGTextContentElement, SVGURIReference { readonly method: SVGAnimatedEnumeration; readonly spacing: SVGAnimatedEnumeration; @@ -10582,6 +11015,7 @@ declare var SVGTextPathElement: { readonly TEXTPATH_SPACINGTYPE_EXACT: number; readonly TEXTPATH_SPACINGTYPE_UNKNOWN: number; } + interface SVGTextPositioningElement extends SVGTextContentElement { readonly dx: SVGAnimatedLengthList; readonly dy: SVGAnimatedLengthList; @@ -10596,6 +11030,7 @@ declare var SVGTextPositioningElement: { prototype: SVGTextPositioningElement; new(): SVGTextPositioningElement; } + interface SVGTitleElement extends SVGElement { addEventListener(type: K, listener: (this: SVGTitleElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; @@ -10605,6 +11040,7 @@ declare var SVGTitleElement: { prototype: SVGTitleElement; new(): SVGTitleElement; } + interface SVGTransform { readonly angle: number; readonly matrix: SVGMatrix; @@ -10635,6 +11071,7 @@ declare var SVGTransform: { readonly SVG_TRANSFORM_TRANSLATE: number; readonly SVG_TRANSFORM_UNKNOWN: number; } + interface SVGTransformList { readonly numberOfItems: number; appendItem(newItem: SVGTransform): SVGTransform; @@ -10652,12 +11089,14 @@ declare var SVGTransformList: { prototype: SVGTransformList; new(): SVGTransformList; } + interface SVGUnitTypes { readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: number; readonly SVG_UNIT_TYPE_UNKNOWN: number; readonly SVG_UNIT_TYPE_USERSPACEONUSE: number; } declare var SVGUnitTypes: SVGUnitTypes; + interface SVGUseElement extends SVGGraphicsElement, SVGURIReference { readonly animatedInstanceRoot: SVGElementInstance; readonly height: SVGAnimatedLength; @@ -10673,6 +11112,7 @@ declare var SVGUseElement: { prototype: SVGUseElement; new(): SVGUseElement; } + interface SVGViewElement extends SVGElement, SVGZoomAndPan, SVGFitToViewBox { readonly viewTarget: SVGStringList; addEventListener(type: K, listener: (this: SVGViewElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; @@ -10683,6 +11123,7 @@ declare var SVGViewElement: { prototype: SVGViewElement; new(): SVGViewElement; } + interface SVGZoomAndPan { readonly zoomAndPan: number; } @@ -10692,6 +11133,7 @@ declare var SVGZoomAndPan: { readonly SVG_ZOOMANDPAN_MAGNIFY: number; readonly SVG_ZOOMANDPAN_UNKNOWN: number; } + interface SVGZoomEvent extends UIEvent { readonly newScale: number; readonly newTranslate: SVGPoint; @@ -10704,6 +11146,7 @@ declare var SVGZoomEvent: { prototype: SVGZoomEvent; new(): SVGZoomEvent; } + interface ScopedCredential { readonly id: ArrayBuffer; readonly type: string; @@ -10713,6 +11156,7 @@ declare var ScopedCredential: { prototype: ScopedCredential; new(): ScopedCredential; } + interface ScopedCredentialInfo { readonly credential: ScopedCredential; readonly publicKey: CryptoKey; @@ -10726,6 +11170,7 @@ declare var ScopedCredentialInfo: { interface ScreenEventMap { "MSOrientationChange": Event; } + interface Screen extends EventTarget { readonly availHeight: number; readonly availWidth: number; @@ -10753,6 +11198,7 @@ declare var Screen: { prototype: Screen; new(): Screen; } + interface ScriptNotifyEvent extends Event { readonly callingUri: string; readonly value: string; @@ -10766,6 +11212,7 @@ declare var ScriptNotifyEvent: { interface ScriptProcessorNodeEventMap { "audioprocess": AudioProcessingEvent; } + interface ScriptProcessorNode extends AudioNode { readonly bufferSize: number; onaudioprocess: (this: ScriptProcessorNode, ev: AudioProcessingEvent) => any; @@ -10777,6 +11224,7 @@ declare var ScriptProcessorNode: { prototype: ScriptProcessorNode; new(): ScriptProcessorNode; } + interface Selection { readonly anchorNode: Node; readonly anchorOffset: number; @@ -10814,6 +11262,7 @@ declare var Selection: { interface ServiceWorkerEventMap extends AbstractWorkerEventMap { "statechange": Event; } + interface ServiceWorker extends EventTarget, AbstractWorker { onstatechange: (this: ServiceWorker, ev: Event) => any; readonly scriptURL: USVString; @@ -10832,6 +11281,7 @@ interface ServiceWorkerContainerEventMap { "controllerchange": Event; "message": ServiceWorkerMessageEvent; } + interface ServiceWorkerContainer extends EventTarget { readonly controller: ServiceWorker | null; oncontrollerchange: (this: ServiceWorkerContainer, ev: Event) => any; @@ -10848,6 +11298,7 @@ declare var ServiceWorkerContainer: { prototype: ServiceWorkerContainer; new(): ServiceWorkerContainer; } + interface ServiceWorkerMessageEvent extends Event { readonly data: any; readonly lastEventId: string; @@ -10864,6 +11315,7 @@ declare var ServiceWorkerMessageEvent: { interface ServiceWorkerRegistrationEventMap { "updatefound": Event; } + interface ServiceWorkerRegistration extends EventTarget { readonly active: ServiceWorker | null; readonly installing: ServiceWorker | null; @@ -10884,6 +11336,7 @@ declare var ServiceWorkerRegistration: { prototype: ServiceWorkerRegistration; new(): ServiceWorkerRegistration; } + interface SourceBuffer extends EventTarget { appendWindowEnd: number; appendWindowStart: number; @@ -10903,6 +11356,7 @@ declare var SourceBuffer: { prototype: SourceBuffer; new(): SourceBuffer; } + interface SourceBufferList extends EventTarget { readonly length: number; item(index: number): SourceBuffer; @@ -10917,6 +11371,7 @@ declare var SourceBufferList: { interface SpeechSynthesisEventMap { "voiceschanged": Event; } + interface SpeechSynthesis extends EventTarget { onvoiceschanged: (this: SpeechSynthesis, ev: Event) => any; readonly paused: boolean; @@ -10935,6 +11390,7 @@ declare var SpeechSynthesis: { prototype: SpeechSynthesis; new(): SpeechSynthesis; } + interface SpeechSynthesisEvent extends Event { readonly charIndex: number; readonly elapsedTime: number; @@ -10956,6 +11412,7 @@ interface SpeechSynthesisUtteranceEventMap { "resume": Event; "start": Event; } + interface SpeechSynthesisUtterance extends EventTarget { lang: string; onboundary: (this: SpeechSynthesisUtterance, ev: Event) => any; @@ -10978,6 +11435,7 @@ declare var SpeechSynthesisUtterance: { prototype: SpeechSynthesisUtterance; new(text?: string): SpeechSynthesisUtterance; } + interface SpeechSynthesisVoice { readonly default: boolean; readonly lang: string; @@ -10990,6 +11448,7 @@ declare var SpeechSynthesisVoice: { prototype: SpeechSynthesisVoice; new(): SpeechSynthesisVoice; } + interface StereoPannerNode extends AudioNode { readonly pan: AudioParam; } @@ -10998,6 +11457,7 @@ declare var StereoPannerNode: { prototype: StereoPannerNode; new(): StereoPannerNode; } + interface Storage { readonly length: number; clear(): void; @@ -11013,6 +11473,7 @@ declare var Storage: { prototype: Storage; new(): Storage; } + interface StorageEvent extends Event { readonly url: string; key?: string; @@ -11025,6 +11486,7 @@ declare var StorageEvent: { prototype: StorageEvent; new (type: string, eventInitDict?: StorageEventInit): StorageEvent; } + interface StyleMedia { readonly type: string; matchMedium(mediaquery: string): boolean; @@ -11034,6 +11496,7 @@ declare var StyleMedia: { prototype: StyleMedia; new(): StyleMedia; } + interface StyleSheet { disabled: boolean; readonly href: string; @@ -11048,6 +11511,7 @@ declare var StyleSheet: { prototype: StyleSheet; new(): StyleSheet; } + interface StyleSheetList { readonly length: number; item(index?: number): StyleSheet; @@ -11058,6 +11522,7 @@ declare var StyleSheetList: { prototype: StyleSheetList; new(): StyleSheetList; } + interface StyleSheetPageList { readonly length: number; item(index: number): CSSPageRule; @@ -11068,6 +11533,7 @@ declare var StyleSheetPageList: { prototype: StyleSheetPageList; new(): StyleSheetPageList; } + interface SubtleCrypto { decrypt(algorithm: string | RsaOaepParams | AesCtrParams | AesCbcParams | AesCmacParams | AesGcmParams | AesCfbParams, key: CryptoKey, data: BufferSource): PromiseLike; deriveBits(algorithm: string | EcdhKeyDeriveParams | DhKeyDeriveParams | ConcatParams | HkdfCtrParams | Pbkdf2Params, baseKey: CryptoKey, length: number): PromiseLike; @@ -11093,6 +11559,7 @@ declare var SubtleCrypto: { prototype: SubtleCrypto; new(): SubtleCrypto; } + interface SyncManager { getTags(): any; register(tag: string): Promise; @@ -11102,6 +11569,7 @@ declare var SyncManager: { prototype: SyncManager; new(): SyncManager; } + interface Text extends CharacterData { readonly wholeText: string; readonly assignedSlot: HTMLSlotElement | null; @@ -11112,6 +11580,7 @@ declare var Text: { prototype: Text; new(): Text; } + interface TextEvent extends UIEvent { readonly data: string; readonly inputMethod: number; @@ -11143,6 +11612,7 @@ declare var TextEvent: { readonly DOM_INPUT_METHOD_UNKNOWN: number; readonly DOM_INPUT_METHOD_VOICE: number; } + interface TextMetrics { readonly width: number; } @@ -11157,6 +11627,7 @@ interface TextTrackEventMap { "error": Event; "load": Event; } + interface TextTrack extends EventTarget { readonly activeCues: TextTrackCueList; readonly cues: TextTrackCueList; @@ -11198,6 +11669,7 @@ interface TextTrackCueEventMap { "enter": Event; "exit": Event; } + interface TextTrackCue extends EventTarget { endTime: number; id: string; @@ -11216,6 +11688,7 @@ declare var TextTrackCue: { prototype: TextTrackCue; new(startTime: number, endTime: number, text: string): TextTrackCue; } + interface TextTrackCueList { readonly length: number; getCueById(id: string): TextTrackCue; @@ -11231,6 +11704,7 @@ declare var TextTrackCueList: { interface TextTrackListEventMap { "addtrack": TrackEvent; } + interface TextTrackList extends EventTarget { readonly length: number; onaddtrack: ((this: TextTrackList, ev: TrackEvent) => any) | null; @@ -11244,6 +11718,7 @@ declare var TextTrackList: { prototype: TextTrackList; new(): TextTrackList; } + interface TimeRanges { readonly length: number; end(index: number): number; @@ -11254,6 +11729,7 @@ declare var TimeRanges: { prototype: TimeRanges; new(): TimeRanges; } + interface Touch { readonly clientX: number; readonly clientY: number; @@ -11269,6 +11745,7 @@ declare var Touch: { prototype: Touch; new(): Touch; } + interface TouchEvent extends UIEvent { readonly altKey: boolean; readonly changedTouches: TouchList; @@ -11286,6 +11763,7 @@ declare var TouchEvent: { prototype: TouchEvent; new(): TouchEvent; } + interface TouchList { readonly length: number; item(index: number): Touch | null; @@ -11296,6 +11774,7 @@ declare var TouchList: { prototype: TouchList; new(): TouchList; } + interface TrackEvent extends Event { readonly track: VideoTrack | AudioTrack | TextTrack | null; } @@ -11304,6 +11783,7 @@ declare var TrackEvent: { prototype: TrackEvent; new(typeArg: string, eventInitDict?: TrackEventInit): TrackEvent; } + interface TransitionEvent extends Event { readonly elapsedTime: number; readonly propertyName: string; @@ -11314,6 +11794,7 @@ declare var TransitionEvent: { prototype: TransitionEvent; new(typeArg: string, eventInitDict?: TransitionEventInit): TransitionEvent; } + interface TreeWalker { currentNode: Node; readonly expandEntityReferences: boolean; @@ -11333,6 +11814,7 @@ declare var TreeWalker: { prototype: TreeWalker; new(): TreeWalker; } + interface UIEvent extends Event { readonly detail: number; readonly view: Window; @@ -11343,6 +11825,7 @@ declare var UIEvent: { prototype: UIEvent; new(typeArg: string, eventInitDict?: UIEventInit): UIEvent; } + interface URL { hash: string; host: string; @@ -11365,6 +11848,7 @@ declare var URL: { createObjectURL(object: any, options?: ObjectURLOptions): string; revokeObjectURL(url: string): void; } + interface UnviewableContentIdentifiedEvent extends NavigationEventWithReferrer { readonly mediaType: string; } @@ -11373,6 +11857,7 @@ declare var UnviewableContentIdentifiedEvent: { prototype: UnviewableContentIdentifiedEvent; new(): UnviewableContentIdentifiedEvent; } + interface ValidityState { readonly badInput: boolean; readonly customError: boolean; @@ -11390,6 +11875,7 @@ declare var ValidityState: { prototype: ValidityState; new(): ValidityState; } + interface VideoPlaybackQuality { readonly corruptedVideoFrames: number; readonly creationTime: number; @@ -11402,6 +11888,7 @@ declare var VideoPlaybackQuality: { prototype: VideoPlaybackQuality; new(): VideoPlaybackQuality; } + interface VideoTrack { readonly id: string; kind: string; @@ -11421,6 +11908,7 @@ interface VideoTrackListEventMap { "change": Event; "removetrack": TrackEvent; } + interface VideoTrackList extends EventTarget { readonly length: number; onaddtrack: (this: VideoTrackList, ev: TrackEvent) => any; @@ -11438,6 +11926,7 @@ declare var VideoTrackList: { prototype: VideoTrackList; new(): VideoTrackList; } + interface WEBGL_compressed_texture_s3tc { readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: number; readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: number; @@ -11453,6 +11942,7 @@ declare var WEBGL_compressed_texture_s3tc: { readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: number; readonly COMPRESSED_RGB_S3TC_DXT1_EXT: number; } + interface WEBGL_debug_renderer_info { readonly UNMASKED_RENDERER_WEBGL: number; readonly UNMASKED_VENDOR_WEBGL: number; @@ -11464,6 +11954,7 @@ declare var WEBGL_debug_renderer_info: { readonly UNMASKED_RENDERER_WEBGL: number; readonly UNMASKED_VENDOR_WEBGL: number; } + interface WEBGL_depth_texture { readonly UNSIGNED_INT_24_8_WEBGL: number; } @@ -11473,6 +11964,7 @@ declare var WEBGL_depth_texture: { new(): WEBGL_depth_texture; readonly UNSIGNED_INT_24_8_WEBGL: number; } + interface WaveShaperNode extends AudioNode { curve: Float32Array | null; oversample: string; @@ -11482,6 +11974,7 @@ declare var WaveShaperNode: { prototype: WaveShaperNode; new(): WaveShaperNode; } + interface WebAuthentication { getAssertion(assertionChallenge: any, options?: AssertionOptions): Promise; makeCredential(accountInformation: Account, cryptoParameters: ScopedCredentialParameters[], attestationChallenge: any, options?: ScopedCredentialOptions): Promise; @@ -11491,6 +11984,7 @@ declare var WebAuthentication: { prototype: WebAuthentication; new(): WebAuthentication; } + interface WebAuthnAssertion { readonly authenticatorData: ArrayBuffer; readonly clientData: ArrayBuffer; @@ -11502,6 +11996,7 @@ declare var WebAuthnAssertion: { prototype: WebAuthnAssertion; new(): WebAuthnAssertion; } + interface WebGLActiveInfo { readonly name: string; readonly size: number; @@ -11512,6 +12007,7 @@ declare var WebGLActiveInfo: { prototype: WebGLActiveInfo; new(): WebGLActiveInfo; } + interface WebGLBuffer extends WebGLObject { } @@ -11519,6 +12015,7 @@ declare var WebGLBuffer: { prototype: WebGLBuffer; new(): WebGLBuffer; } + interface WebGLContextEvent extends Event { readonly statusMessage: string; } @@ -11527,6 +12024,7 @@ declare var WebGLContextEvent: { prototype: WebGLContextEvent; new(typeArg: string, eventInitDict?: WebGLContextEventInit): WebGLContextEvent; } + interface WebGLFramebuffer extends WebGLObject { } @@ -11534,6 +12032,7 @@ declare var WebGLFramebuffer: { prototype: WebGLFramebuffer; new(): WebGLFramebuffer; } + interface WebGLObject { } @@ -11541,6 +12040,7 @@ declare var WebGLObject: { prototype: WebGLObject; new(): WebGLObject; } + interface WebGLProgram extends WebGLObject { } @@ -11548,6 +12048,7 @@ declare var WebGLProgram: { prototype: WebGLProgram; new(): WebGLProgram; } + interface WebGLRenderbuffer extends WebGLObject { } @@ -11555,6 +12056,7 @@ declare var WebGLRenderbuffer: { prototype: WebGLRenderbuffer; new(): WebGLRenderbuffer; } + interface WebGLRenderingContext { readonly canvas: HTMLCanvasElement; readonly drawingBufferHeight: number; @@ -12297,6 +12799,7 @@ declare var WebGLRenderingContext: { readonly VIEWPORT: number; readonly ZERO: number; } + interface WebGLShader extends WebGLObject { } @@ -12304,6 +12807,7 @@ declare var WebGLShader: { prototype: WebGLShader; new(): WebGLShader; } + interface WebGLShaderPrecisionFormat { readonly precision: number; readonly rangeMax: number; @@ -12314,6 +12818,7 @@ declare var WebGLShaderPrecisionFormat: { prototype: WebGLShaderPrecisionFormat; new(): WebGLShaderPrecisionFormat; } + interface WebGLTexture extends WebGLObject { } @@ -12321,6 +12826,7 @@ declare var WebGLTexture: { prototype: WebGLTexture; new(): WebGLTexture; } + interface WebGLUniformLocation { } @@ -12328,6 +12834,7 @@ declare var WebGLUniformLocation: { prototype: WebGLUniformLocation; new(): WebGLUniformLocation; } + interface WebKitCSSMatrix { a: number; b: number; @@ -12367,6 +12874,7 @@ declare var WebKitCSSMatrix: { prototype: WebKitCSSMatrix; new(text?: string): WebKitCSSMatrix; } + interface WebKitDirectoryEntry extends WebKitEntry { createReader(): WebKitDirectoryReader; } @@ -12375,6 +12883,7 @@ declare var WebKitDirectoryEntry: { prototype: WebKitDirectoryEntry; new(): WebKitDirectoryEntry; } + interface WebKitDirectoryReader { readEntries(successCallback: WebKitEntriesCallback, errorCallback?: WebKitErrorCallback): void; } @@ -12383,6 +12892,7 @@ declare var WebKitDirectoryReader: { prototype: WebKitDirectoryReader; new(): WebKitDirectoryReader; } + interface WebKitEntry { readonly filesystem: WebKitFileSystem; readonly fullPath: string; @@ -12395,6 +12905,7 @@ declare var WebKitEntry: { prototype: WebKitEntry; new(): WebKitEntry; } + interface WebKitFileEntry extends WebKitEntry { file(successCallback: WebKitFileCallback, errorCallback?: WebKitErrorCallback): void; } @@ -12403,6 +12914,7 @@ declare var WebKitFileEntry: { prototype: WebKitFileEntry; new(): WebKitFileEntry; } + interface WebKitFileSystem { readonly name: string; readonly root: WebKitDirectoryEntry; @@ -12412,6 +12924,7 @@ declare var WebKitFileSystem: { prototype: WebKitFileSystem; new(): WebKitFileSystem; } + interface WebKitPoint { x: number; y: number; @@ -12428,6 +12941,7 @@ interface WebSocketEventMap { "message": MessageEvent; "open": Event; } + interface WebSocket extends EventTarget { binaryType: string; readonly bufferedAmount: number; @@ -12457,6 +12971,7 @@ declare var WebSocket: { readonly CONNECTING: number; readonly OPEN: number; } + interface WheelEvent extends MouseEvent { readonly deltaMode: number; readonly deltaX: number; @@ -12568,6 +13083,7 @@ interface WindowEventMap extends GlobalEventHandlersEventMap { "volumechange": Event; "waiting": Event; } + interface Window extends EventTarget, WindowTimers, WindowSessionStorage, WindowLocalStorage, WindowConsole, GlobalEventHandlers, IDBEnvironment, WindowBase64, GlobalFetch { readonly applicationCache: ApplicationCache; readonly caches: CacheStorage; @@ -12760,6 +13276,7 @@ declare var Window: { interface WorkerEventMap extends AbstractWorkerEventMap { "message": MessageEvent; } + interface Worker extends EventTarget, AbstractWorker { onmessage: (this: Worker, ev: MessageEvent) => any; postMessage(message: any, transfer?: any[]): void; @@ -12772,6 +13289,7 @@ declare var Worker: { prototype: Worker; new(stringUrl: string): Worker; } + interface XMLDocument extends Document { addEventListener(type: K, listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; @@ -12785,6 +13303,7 @@ declare var XMLDocument: { interface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap { "readystatechange": Event; } + interface XMLHttpRequest extends EventTarget, XMLHttpRequestEventTarget { onreadystatechange: (this: XMLHttpRequest, ev: Event) => any; readonly readyState: number; @@ -12827,6 +13346,7 @@ declare var XMLHttpRequest: { readonly OPENED: number; readonly UNSENT: number; } + interface XMLHttpRequestUpload extends EventTarget, XMLHttpRequestEventTarget { addEventListener(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; @@ -12836,6 +13356,7 @@ declare var XMLHttpRequestUpload: { prototype: XMLHttpRequestUpload; new(): XMLHttpRequestUpload; } + interface XMLSerializer { serializeToString(target: Node): string; } @@ -12844,6 +13365,7 @@ declare var XMLSerializer: { prototype: XMLSerializer; new(): XMLSerializer; } + interface XPathEvaluator { createExpression(expression: string, resolver: XPathNSResolver): XPathExpression; createNSResolver(nodeResolver?: Node): XPathNSResolver; @@ -12854,6 +13376,7 @@ declare var XPathEvaluator: { prototype: XPathEvaluator; new(): XPathEvaluator; } + interface XPathExpression { evaluate(contextNode: Node, type: number, result: XPathResult | null): XPathResult; } @@ -12862,6 +13385,7 @@ declare var XPathExpression: { prototype: XPathExpression; new(): XPathExpression; } + interface XPathNSResolver { lookupNamespaceURI(prefix: string): string; } @@ -12870,6 +13394,7 @@ declare var XPathNSResolver: { prototype: XPathNSResolver; new(): XPathNSResolver; } + interface XPathResult { readonly booleanValue: boolean; readonly invalidIteratorState: boolean; @@ -12906,6 +13431,7 @@ declare var XPathResult: { readonly UNORDERED_NODE_ITERATOR_TYPE: number; readonly UNORDERED_NODE_SNAPSHOT_TYPE: number; } + interface XSLTProcessor { clearParameters(): void; getParameter(namespaceURI: string, localName: string): any; @@ -12921,6 +13447,7 @@ declare var XSLTProcessor: { prototype: XSLTProcessor; new(): XSLTProcessor; } + interface webkitRTCPeerConnection extends RTCPeerConnection { addEventListener(type: K, listener: (this: webkitRTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; @@ -12934,9 +13461,11 @@ declare var webkitRTCPeerConnection: { interface AbstractWorkerEventMap { "error": ErrorEvent; } + interface AbstractWorker { onerror: (this: AbstractWorker, ev: ErrorEvent) => any; } + interface Body { readonly bodyUsed: boolean; arrayBuffer(): Promise; @@ -12944,6 +13473,7 @@ interface Body { json(): Promise; text(): Promise; } + interface CanvasPathMethods { arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, anticlockwise?: boolean): void; arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void; @@ -12955,15 +13485,19 @@ interface CanvasPathMethods { quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void; rect(x: number, y: number, w: number, h: number): void; } + interface ChildNode { remove(): void; } + interface DOML2DeprecatedColorProperty { color: string; } + interface DOML2DeprecatedSizeProperty { size: number; } + interface DocumentEvent { createEvent(eventInterface:"AnimationEvent"): AnimationEvent; createEvent(eventInterface:"AudioProcessingEvent"): AudioProcessingEvent; @@ -13038,6 +13572,7 @@ interface DocumentEvent { createEvent(eventInterface:"WheelEvent"): WheelEvent; createEvent(eventInterface: string): Event; } + interface ElementTraversal { readonly childElementCount: number; readonly firstElementChild: Element | null; @@ -13045,6 +13580,7 @@ interface ElementTraversal { readonly nextElementSibling: Element | null; readonly previousElementSibling: Element | null; } + interface GetSVGDocument { getSVGDocument(): Document; } @@ -13060,6 +13596,7 @@ interface GlobalEventHandlersEventMap { "pointerup": PointerEvent; "wheel": WheelEvent; } + interface GlobalEventHandlers { onpointercancel: (this: GlobalEventHandlers, ev: PointerEvent) => any; onpointerdown: (this: GlobalEventHandlers, ev: PointerEvent) => any; @@ -13071,9 +13608,11 @@ interface GlobalEventHandlers { onpointerup: (this: GlobalEventHandlers, ev: PointerEvent) => any; onwheel: (this: GlobalEventHandlers, ev: WheelEvent) => any; } + interface GlobalFetch { fetch(input: RequestInfo, init?: RequestInit): Promise; } + interface HTMLTableAlignment { /** * Sets or retrieves a value that you can use to implement your own ch functionality for the object. @@ -13088,9 +13627,11 @@ interface HTMLTableAlignment { */ vAlign: string; } + interface IDBEnvironment { readonly indexedDB: IDBFactory; } + interface LinkStyle { readonly sheet: StyleSheet; } @@ -13103,6 +13644,7 @@ interface MSBaseReaderEventMap { "loadstart": Event; "progress": ProgressEvent; } + interface MSBaseReader { onabort: (this: MSBaseReader, ev: Event) => any; onerror: (this: MSBaseReader, ev: ErrorEvent) => any; @@ -13117,10 +13659,12 @@ interface MSBaseReader { readonly EMPTY: number; readonly LOADING: number; } + interface MSFileSaver { msSaveBlob(blob: any, defaultName?: string): boolean; msSaveOrOpenBlob(blob: any, defaultName?: string): boolean; } + interface MSNavigatorDoNotTrack { confirmSiteSpecificTrackingException(args: ConfirmSiteSpecificExceptionsInformation): boolean; confirmWebWideTrackingException(args: ExceptionInformation): boolean; @@ -13129,17 +13673,22 @@ interface MSNavigatorDoNotTrack { storeSiteSpecificTrackingException(args: StoreSiteSpecificExceptionsInformation): void; storeWebWideTrackingException(args: StoreExceptionsInformation): void; } + interface NavigatorBeacon { sendBeacon(url: USVString, data?: BodyInit): boolean; } + interface NavigatorConcurrentHardware { readonly hardwareConcurrency: number; } + interface NavigatorContentUtils { } + interface NavigatorGeolocation { readonly geolocation: Geolocation; } + interface NavigatorID { readonly appCodeName: string; readonly appName: string; @@ -13151,28 +13700,35 @@ interface NavigatorID { readonly vendor: string; readonly vendorSub: string; } + interface NavigatorOnLine { readonly onLine: boolean; } + interface NavigatorStorageUtils { } + interface NavigatorUserMedia { readonly mediaDevices: MediaDevices; getUserMedia(constraints: MediaStreamConstraints, successCallback: NavigatorUserMediaSuccessCallback, errorCallback: NavigatorUserMediaErrorCallback): void; } + interface NodeSelector { querySelector(selectors: K): ElementTagNameMap[K] | null; querySelector(selectors: string): Element | null; querySelectorAll(selectors: K): ElementListTagNameMap[K]; querySelectorAll(selectors: string): NodeListOf; } + interface RandomSource { getRandomValues(array: ArrayBufferView): ArrayBufferView; } + interface SVGAnimatedPoints { readonly animatedPoints: SVGPointList; readonly points: SVGPointList; } + interface SVGFilterPrimitiveStandardAttributes { readonly height: SVGAnimatedLength; readonly result: SVGAnimatedString; @@ -13180,32 +13736,40 @@ interface SVGFilterPrimitiveStandardAttributes { readonly x: SVGAnimatedLength; readonly y: SVGAnimatedLength; } + interface SVGFitToViewBox { readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio; readonly viewBox: SVGAnimatedRect; } + interface SVGTests { readonly requiredExtensions: SVGStringList; readonly requiredFeatures: SVGStringList; readonly systemLanguage: SVGStringList; hasExtension(extension: string): boolean; } + interface SVGURIReference { readonly href: SVGAnimatedString; } + interface WindowBase64 { atob(encodedString: string): string; btoa(rawString: string): string; } + interface WindowConsole { readonly console: Console; } + interface WindowLocalStorage { readonly localStorage: Storage; } + interface WindowSessionStorage { readonly sessionStorage: Storage; } + interface WindowTimers extends Object, WindowTimersExtension { clearInterval(handle: number): void; clearTimeout(handle: number): void; @@ -13214,6 +13778,7 @@ interface WindowTimers extends Object, WindowTimersExtension { setTimeout(handler: (...args: any[]) => void, timeout: number): number; setTimeout(handler: any, timeout?: any, ...args: any[]): number; } + interface WindowTimersExtension { clearImmediate(handle: number): void; setImmediate(handler: (...args: any[]) => void): number; @@ -13229,6 +13794,7 @@ interface XMLHttpRequestEventTargetEventMap { "progress": ProgressEvent; "timeout": ProgressEvent; } + interface XMLHttpRequestEventTarget { onabort: (this: XMLHttpRequestEventTarget, ev: Event) => any; onerror: (this: XMLHttpRequestEventTarget, ev: ErrorEvent) => any; diff --git a/baselines/webworker.generated.d.ts b/baselines/webworker.generated.d.ts index 28fa397bd..172a31ce7 100644 --- a/baselines/webworker.generated.d.ts +++ b/baselines/webworker.generated.d.ts @@ -138,6 +138,7 @@ interface WebKitErrorCallback { interface WebKitFileCallback { (file: File): void; } + interface AudioBuffer { readonly duration: number; readonly length: number; @@ -152,6 +153,7 @@ declare var AudioBuffer: { prototype: AudioBuffer; new(): AudioBuffer; } + interface Blob { readonly size: number; readonly type: string; @@ -164,6 +166,7 @@ declare var Blob: { prototype: Blob; new (blobParts?: any[], options?: BlobPropertyBag): Blob; } + interface Cache { add(request: RequestInfo): Promise; addAll(requests: RequestInfo[]): Promise; @@ -178,6 +181,7 @@ declare var Cache: { prototype: Cache; new(): Cache; } + interface CacheStorage { delete(cacheName: string): Promise; has(cacheName: string): Promise; @@ -190,6 +194,7 @@ declare var CacheStorage: { prototype: CacheStorage; new(): CacheStorage; } + interface CloseEvent extends Event { readonly code: number; readonly reason: string; @@ -201,6 +206,7 @@ declare var CloseEvent: { prototype: CloseEvent; new(typeArg: string, eventInitDict?: CloseEventInit): CloseEvent; } + interface Console { assert(test?: boolean, message?: string, ...optionalParams: any[]): void; clear(): void; @@ -230,6 +236,7 @@ declare var Console: { prototype: Console; new(): Console; } + interface Coordinates { readonly accuracy: number; readonly altitude: number | null; @@ -244,6 +251,7 @@ declare var Coordinates: { prototype: Coordinates; new(): Coordinates; } + interface CryptoKey { readonly algorithm: KeyAlgorithm; readonly extractable: boolean; @@ -255,6 +263,7 @@ declare var CryptoKey: { prototype: CryptoKey; new(): CryptoKey; } + interface DOMError { readonly name: string; toString(): string; @@ -264,6 +273,7 @@ declare var DOMError: { prototype: DOMError; new(): DOMError; } + interface DOMException { readonly code: number; readonly message: string; @@ -329,6 +339,7 @@ declare var DOMException: { readonly VALIDATION_ERR: number; readonly WRONG_DOCUMENT_ERR: number; } + interface DOMStringList { readonly length: number; contains(str: string): boolean; @@ -340,6 +351,7 @@ declare var DOMStringList: { prototype: DOMStringList; new(): DOMStringList; } + interface ErrorEvent extends Event { readonly colno: number; readonly error: any; @@ -353,6 +365,7 @@ declare var ErrorEvent: { prototype: ErrorEvent; new(type: string, errorEventInitDict?: ErrorEventInit): ErrorEvent; } + interface Event { readonly bubbles: boolean; cancelBubble: boolean; @@ -384,6 +397,7 @@ declare var Event: { readonly BUBBLING_PHASE: number; readonly CAPTURING_PHASE: number; } + interface EventTarget { addEventListener(type: string, listener?: EventListenerOrEventListenerObject, useCapture?: boolean): void; dispatchEvent(evt: Event): boolean; @@ -394,6 +408,7 @@ declare var EventTarget: { prototype: EventTarget; new(): EventTarget; } + interface File extends Blob { readonly lastModifiedDate: any; readonly name: string; @@ -404,6 +419,7 @@ declare var File: { prototype: File; new (parts: (ArrayBuffer | ArrayBufferView | Blob | string)[], filename: string, properties?: FilePropertyBag): File; } + interface FileList { readonly length: number; item(index: number): File; @@ -414,6 +430,7 @@ declare var FileList: { prototype: FileList; new(): FileList; } + interface FileReader extends EventTarget, MSBaseReader { readonly error: DOMError; readAsArrayBuffer(blob: Blob): void; @@ -428,6 +445,7 @@ declare var FileReader: { prototype: FileReader; new(): FileReader; } + interface Headers { append(name: string, value: string): void; delete(name: string): void; @@ -441,6 +459,7 @@ declare var Headers: { prototype: Headers; new(init?: any): Headers; } + interface IDBCursor { readonly direction: string; key: IDBKeyRange | IDBValidKey; @@ -464,6 +483,7 @@ declare var IDBCursor: { readonly PREV: string; readonly PREV_NO_DUPLICATE: string; } + interface IDBCursorWithValue extends IDBCursor { readonly value: any; } @@ -477,6 +497,7 @@ interface IDBDatabaseEventMap { "abort": Event; "error": Event; } + interface IDBDatabase extends EventTarget { readonly name: string; readonly objectStoreNames: DOMStringList; @@ -497,6 +518,7 @@ declare var IDBDatabase: { prototype: IDBDatabase; new(): IDBDatabase; } + interface IDBFactory { cmp(first: any, second: any): number; deleteDatabase(name: string): IDBOpenDBRequest; @@ -507,6 +529,7 @@ declare var IDBFactory: { prototype: IDBFactory; new(): IDBFactory; } + interface IDBIndex { keyPath: string | string[]; readonly name: string; @@ -524,6 +547,7 @@ declare var IDBIndex: { prototype: IDBIndex; new(): IDBIndex; } + interface IDBKeyRange { readonly lower: any; readonly lowerOpen: boolean; @@ -539,6 +563,7 @@ declare var IDBKeyRange: { only(value: any): IDBKeyRange; upperBound(upper: any, open?: boolean): IDBKeyRange; } + interface IDBObjectStore { readonly indexNames: DOMStringList; keyPath: string | string[]; @@ -566,6 +591,7 @@ interface IDBOpenDBRequestEventMap extends IDBRequestEventMap { "blocked": Event; "upgradeneeded": IDBVersionChangeEvent; } + interface IDBOpenDBRequest extends IDBRequest { onblocked: (this: IDBOpenDBRequest, ev: Event) => any; onupgradeneeded: (this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any; @@ -582,6 +608,7 @@ interface IDBRequestEventMap { "error": Event; "success": Event; } + interface IDBRequest extends EventTarget { readonly error: DOMError; onerror: (this: IDBRequest, ev: Event) => any; @@ -604,6 +631,7 @@ interface IDBTransactionEventMap { "complete": Event; "error": Event; } + interface IDBTransaction extends EventTarget { readonly db: IDBDatabase; readonly error: DOMError; @@ -627,6 +655,7 @@ declare var IDBTransaction: { readonly READ_WRITE: string; readonly VERSION_CHANGE: string; } + interface IDBVersionChangeEvent extends Event { readonly newVersion: number | null; readonly oldVersion: number; @@ -636,6 +665,7 @@ declare var IDBVersionChangeEvent: { prototype: IDBVersionChangeEvent; new(): IDBVersionChangeEvent; } + interface ImageData { data: Uint8ClampedArray; readonly height: number; @@ -647,6 +677,7 @@ declare var ImageData: { new(width: number, height: number): ImageData; new(array: Uint8ClampedArray, width: number, height: number): ImageData; } + interface MessageChannel { readonly port1: MessagePort; readonly port2: MessagePort; @@ -656,6 +687,7 @@ declare var MessageChannel: { prototype: MessageChannel; new(): MessageChannel; } + interface MessageEvent extends Event { readonly data: any; readonly origin: string; @@ -672,6 +704,7 @@ declare var MessageEvent: { interface MessagePortEventMap { "message": MessageEvent; } + interface MessagePort extends EventTarget { onmessage: (this: MessagePort, ev: MessageEvent) => any; close(): void; @@ -692,6 +725,7 @@ interface NotificationEventMap { "error": Event; "show": Event; } + interface Notification extends EventTarget { readonly body: string; readonly dir: string; @@ -714,6 +748,7 @@ declare var Notification: { new(title: string, options?: NotificationOptions): Notification; requestPermission(callback?: NotificationPermissionCallback): Promise; } + interface Performance { readonly navigation: PerformanceNavigation; readonly timing: PerformanceTiming; @@ -736,6 +771,7 @@ declare var Performance: { prototype: Performance; new(): Performance; } + interface PerformanceNavigation { readonly redirectCount: number; readonly type: number; @@ -754,6 +790,7 @@ declare var PerformanceNavigation: { readonly TYPE_RELOAD: number; readonly TYPE_RESERVED: number; } + interface PerformanceTiming { readonly connectEnd: number; readonly connectStart: number; @@ -784,6 +821,7 @@ declare var PerformanceTiming: { prototype: PerformanceTiming; new(): PerformanceTiming; } + interface Position { readonly coords: Coordinates; readonly timestamp: number; @@ -793,6 +831,7 @@ declare var Position: { prototype: Position; new(): Position; } + interface PositionError { readonly code: number; readonly message: string; @@ -809,6 +848,7 @@ declare var PositionError: { readonly POSITION_UNAVAILABLE: number; readonly TIMEOUT: number; } + interface ProgressEvent extends Event { readonly lengthComputable: boolean; readonly loaded: number; @@ -820,6 +860,7 @@ declare var ProgressEvent: { prototype: ProgressEvent; new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent; } + interface PushManager { getSubscription(): Promise; permissionState(options?: PushSubscriptionOptionsInit): Promise; @@ -830,6 +871,7 @@ declare var PushManager: { prototype: PushManager; new(): PushManager; } + interface PushSubscription { readonly endpoint: USVString; readonly options: PushSubscriptionOptions; @@ -842,6 +884,7 @@ declare var PushSubscription: { prototype: PushSubscription; new(): PushSubscription; } + interface PushSubscriptionOptions { readonly applicationServerKey: ArrayBuffer | null; readonly userVisibleOnly: boolean; @@ -851,6 +894,7 @@ declare var PushSubscriptionOptions: { prototype: PushSubscriptionOptions; new(): PushSubscriptionOptions; } + interface ReadableStream { readonly locked: boolean; cancel(): Promise; @@ -861,6 +905,7 @@ declare var ReadableStream: { prototype: ReadableStream; new(): ReadableStream; } + interface ReadableStreamReader { cancel(): Promise; read(): Promise; @@ -871,6 +916,7 @@ declare var ReadableStreamReader: { prototype: ReadableStreamReader; new(): ReadableStreamReader; } + interface Request extends Object, Body { readonly cache: string; readonly credentials: string; @@ -892,6 +938,7 @@ declare var Request: { prototype: Request; new(input: Request | string, init?: RequestInit): Request; } + interface Response extends Object, Body { readonly body: ReadableStream | null; readonly headers: Headers; @@ -911,6 +958,7 @@ declare var Response: { interface ServiceWorkerEventMap extends AbstractWorkerEventMap { "statechange": Event; } + interface ServiceWorker extends EventTarget, AbstractWorker { onstatechange: (this: ServiceWorker, ev: Event) => any; readonly scriptURL: USVString; @@ -928,6 +976,7 @@ declare var ServiceWorker: { interface ServiceWorkerRegistrationEventMap { "updatefound": Event; } + interface ServiceWorkerRegistration extends EventTarget { readonly active: ServiceWorker | null; readonly installing: ServiceWorker | null; @@ -948,6 +997,7 @@ declare var ServiceWorkerRegistration: { prototype: ServiceWorkerRegistration; new(): ServiceWorkerRegistration; } + interface SyncManager { getTags(): any; register(tag: string): Promise; @@ -957,6 +1007,7 @@ declare var SyncManager: { prototype: SyncManager; new(): SyncManager; } + interface WebKitDirectoryEntry extends WebKitEntry { createReader(): WebKitDirectoryReader; } @@ -965,6 +1016,7 @@ declare var WebKitDirectoryEntry: { prototype: WebKitDirectoryEntry; new(): WebKitDirectoryEntry; } + interface WebKitDirectoryReader { readEntries(successCallback: WebKitEntriesCallback, errorCallback?: WebKitErrorCallback): void; } @@ -973,6 +1025,7 @@ declare var WebKitDirectoryReader: { prototype: WebKitDirectoryReader; new(): WebKitDirectoryReader; } + interface WebKitEntry { readonly filesystem: WebKitFileSystem; readonly fullPath: string; @@ -985,6 +1038,7 @@ declare var WebKitEntry: { prototype: WebKitEntry; new(): WebKitEntry; } + interface WebKitFileSystem { readonly name: string; readonly root: WebKitDirectoryEntry; @@ -1001,6 +1055,7 @@ interface WebSocketEventMap { "message": MessageEvent; "open": Event; } + interface WebSocket extends EventTarget { binaryType: string; readonly bufferedAmount: number; @@ -1034,6 +1089,7 @@ declare var WebSocket: { interface WorkerEventMap extends AbstractWorkerEventMap { "message": MessageEvent; } + interface Worker extends EventTarget, AbstractWorker { onmessage: (this: Worker, ev: MessageEvent) => any; postMessage(message: any, transfer?: any[]): void; @@ -1050,6 +1106,7 @@ declare var Worker: { interface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap { "readystatechange": Event; } + interface XMLHttpRequest extends EventTarget, XMLHttpRequestEventTarget { onreadystatechange: (this: XMLHttpRequest, ev: Event) => any; readonly readyState: number; @@ -1091,6 +1148,7 @@ declare var XMLHttpRequest: { readonly OPENED: number; readonly UNSENT: number; } + interface XMLHttpRequestUpload extends EventTarget, XMLHttpRequestEventTarget { addEventListener(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; @@ -1104,9 +1162,11 @@ declare var XMLHttpRequestUpload: { interface AbstractWorkerEventMap { "error": ErrorEvent; } + interface AbstractWorker { onerror: (this: AbstractWorker, ev: ErrorEvent) => any; } + interface Body { readonly bodyUsed: boolean; arrayBuffer(): Promise; @@ -1114,6 +1174,7 @@ interface Body { json(): Promise; text(): Promise; } + interface GlobalFetch { fetch(input: RequestInfo, init?: RequestInit): Promise; } @@ -1126,6 +1187,7 @@ interface MSBaseReaderEventMap { "loadstart": Event; "progress": ProgressEvent; } + interface MSBaseReader { onabort: (this: MSBaseReader, ev: Event) => any; onerror: (this: MSBaseReader, ev: ErrorEvent) => any; @@ -1140,12 +1202,15 @@ interface MSBaseReader { readonly EMPTY: number; readonly LOADING: number; } + interface NavigatorBeacon { sendBeacon(url: USVString, data?: BodyInit): boolean; } + interface NavigatorConcurrentHardware { readonly hardwareConcurrency: number; } + interface NavigatorID { readonly appCodeName: string; readonly appName: string; @@ -1157,13 +1222,16 @@ interface NavigatorID { readonly vendor: string; readonly vendorSub: string; } + interface NavigatorOnLine { readonly onLine: boolean; } + interface WindowBase64 { atob(encodedString: string): string; btoa(rawString: string): string; } + interface WindowConsole { readonly console: Console; } @@ -1177,6 +1245,7 @@ interface XMLHttpRequestEventTargetEventMap { "progress": ProgressEvent; "timeout": ProgressEvent; } + interface XMLHttpRequestEventTarget { onabort: (this: XMLHttpRequestEventTarget, ev: Event) => any; onerror: (this: XMLHttpRequestEventTarget, ev: ErrorEvent) => any; @@ -1186,6 +1255,7 @@ interface XMLHttpRequestEventTarget { onprogress: (this: XMLHttpRequestEventTarget, ev: ProgressEvent) => any; ontimeout: (this: XMLHttpRequestEventTarget, ev: ProgressEvent) => any; } + interface Client { readonly frameType: string; readonly id: string; @@ -1197,6 +1267,7 @@ declare var Client: { prototype: Client; new(): Client; } + interface Clients { claim(): Promise; get(id: string): Promise; @@ -1212,6 +1283,7 @@ declare var Clients: { interface DedicatedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap { "message": MessageEvent; } + interface DedicatedWorkerGlobalScope extends WorkerGlobalScope { onmessage: (this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any; close(): void; @@ -1224,6 +1296,7 @@ declare var DedicatedWorkerGlobalScope: { prototype: DedicatedWorkerGlobalScope; new(): DedicatedWorkerGlobalScope; } + interface ExtendableEvent extends Event { waitUntil(f: Promise): void; } @@ -1232,6 +1305,7 @@ declare var ExtendableEvent: { prototype: ExtendableEvent; new(type: string, eventInitDict?: ExtendableEventInit): ExtendableEvent; } + interface ExtendableMessageEvent extends ExtendableEvent { readonly data: any; readonly lastEventId: string; @@ -1244,6 +1318,7 @@ declare var ExtendableMessageEvent: { prototype: ExtendableMessageEvent; new(type: string, eventInitDict?: ExtendableMessageEventInit): ExtendableMessageEvent; } + interface FetchEvent extends ExtendableEvent { readonly clientId: string | null; readonly isReload: boolean; @@ -1255,6 +1330,7 @@ declare var FetchEvent: { prototype: FetchEvent; new(type: string, eventInitDict: FetchEventInit): FetchEvent; } + interface FileReaderSync { readAsArrayBuffer(blob: Blob): any; readAsBinaryString(blob: Blob): void; @@ -1266,6 +1342,7 @@ declare var FileReaderSync: { prototype: FileReaderSync; new(): FileReaderSync; } + interface NotificationEvent extends ExtendableEvent { readonly action: string; readonly notification: Notification; @@ -1275,6 +1352,7 @@ declare var NotificationEvent: { prototype: NotificationEvent; new(type: string, eventInitDict: NotificationEventInit): NotificationEvent; } + interface PushEvent extends ExtendableEvent { readonly data: PushMessageData | null; } @@ -1283,6 +1361,7 @@ declare var PushEvent: { prototype: PushEvent; new(type: string, eventInitDict?: PushEventInit): PushEvent; } + interface PushMessageData { arrayBuffer(): ArrayBuffer; blob(): Blob; @@ -1306,6 +1385,7 @@ interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap { "pushsubscriptionchange": ExtendableEvent; "sync": SyncEvent; } + interface ServiceWorkerGlobalScope extends WorkerGlobalScope { readonly clients: Clients; onactivate: (this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any; @@ -1327,6 +1407,7 @@ declare var ServiceWorkerGlobalScope: { prototype: ServiceWorkerGlobalScope; new(): ServiceWorkerGlobalScope; } + interface SyncEvent extends ExtendableEvent { readonly lastChance: boolean; readonly tag: string; @@ -1336,6 +1417,7 @@ declare var SyncEvent: { prototype: SyncEvent; new(type: string, init: SyncEventInit): SyncEvent; } + interface WindowClient extends Client { readonly focused: boolean; readonly visibilityState: string; @@ -1351,6 +1433,7 @@ declare var WindowClient: { interface WorkerGlobalScopeEventMap { "error": ErrorEvent; } + interface WorkerGlobalScope extends EventTarget, WorkerUtils, WindowConsole, GlobalFetch { readonly caches: CacheStorage; readonly isSecureContext: boolean; @@ -1367,6 +1450,7 @@ declare var WorkerGlobalScope: { prototype: WorkerGlobalScope; new(): WorkerGlobalScope; } + interface WorkerLocation { readonly hash: string; readonly host: string; @@ -1384,6 +1468,7 @@ declare var WorkerLocation: { prototype: WorkerLocation; new(): WorkerLocation; } + interface WorkerNavigator extends Object, NavigatorID, NavigatorOnLine, NavigatorBeacon, NavigatorConcurrentHardware { readonly hardwareConcurrency: number; } @@ -1392,6 +1477,7 @@ declare var WorkerNavigator: { prototype: WorkerNavigator; new(): WorkerNavigator; } + interface WorkerUtils extends Object, WindowBase64 { readonly indexedDB: IDBFactory; readonly msIndexedDB: IDBFactory; From a072f26e5ccf5c34965191511bf5b5a19c0b4462 Mon Sep 17 00:00:00 2001 From: Zhengbo Li Date: Mon, 13 Mar 2017 19:27:10 -0700 Subject: [PATCH 08/10] Make EventTarget generic --- TS.fsx | 43 +++++++++++++++++++----------------- inputfiles/addedTypes.json | 18 +++++++++++++++ inputfiles/removedTypes.json | 4 ++++ 3 files changed, 45 insertions(+), 20 deletions(-) diff --git a/TS.fsx b/TS.fsx index 6196f302b..2d1785609 100644 --- a/TS.fsx +++ b/TS.fsx @@ -859,7 +859,7 @@ module Emit = let EmitCallBackInterface (i:Browser.Interface) = if i.Name = "EventListener" then - Pt.Printl "interface %s {" i.Name + Pt.Printl "interface %s> {" i.Name Pt.PrintWithAddedIndent "(evt: Event): void;" else Pt.Printl "interface %s {" i.Name @@ -1190,7 +1190,7 @@ module Emit = let mutable typeParameter = "" let mutable extendsToPrint = finalExtends if List.contains i.Name nonEventTargetTypes || i.Name = "Event" then - typeParameter <- "" + typeParameter <- " = EventTarget>" if not (List.isEmpty finalExtends) then // Cases: @@ -1199,7 +1199,7 @@ module Emit = // 2. Indirect inheritance of "Event" // interface XYZEvent extends EventTarget = EventTarget> extends UIEvent if IsDependsOn i.Name "Event" then - typeParameter <- "" + typeParameter <- " = EventTarget>" extendsToPrint <- extendsToPrint |> List.map (fun baseType -> if baseType = "Event" || IsDependsOn baseType "Event" then baseType + "" else baseType) // If the current interface inherits from one of the non-eventtarget mixin types, the // type argument should be the interface itself, if it also extends EventTarget. E.g. @@ -1298,28 +1298,31 @@ module Emit = Pt.Printl "" let EmitInterface flavor (i:Browser.Interface) = - Pt.ClearStack() - EmitInterfaceEventMap flavor i - - Pt.ResetIndent() - EmitInterfaceDeclaration i - Pt.IncreaseIndent() + match getRemovedItemByName i.Name ItemKind.Interface i.Name with + | Some _ -> () + | _ -> + Pt.ClearStack() + EmitInterfaceEventMap flavor i - let prefix = "" - EmitMembers flavor prefix EmitScope.InstanceOnly i - EmitConstants i - EmitEventHandlers flavor prefix i - EmitIndexers EmitScope.InstanceOnly i + Pt.ResetIndent() + EmitInterfaceDeclaration i + Pt.IncreaseIndent() - Pt.DecreaseIndent() - Pt.Printl "}" - Pt.Printl "" + let prefix = "" + EmitMembers flavor prefix EmitScope.InstanceOnly i + EmitConstants i + EmitEventHandlers flavor prefix i + EmitIndexers EmitScope.InstanceOnly i - if not (Pt.StackIsEmpty()) then - Pt.PrintStackContent() + Pt.DecreaseIndent() Pt.Printl "}" Pt.Printl "" + if not (Pt.StackIsEmpty()) then + Pt.PrintStackContent() + Pt.Printl "}" + Pt.Printl "" + let EmitStaticInterface flavor (i:Browser.Interface) = // Some types are static types with non-static members. For example, // NodeFilter is a static method itself, however it has an "acceptNode" method @@ -1520,7 +1523,7 @@ module Emit = // Add missed interface definition from the spec InputJson.getAddedItems InputJson.Interface flavor |> Array.iter EmitAddedInterface - Pt.Printl "declare type EventListenerOrEventListenerObject = EventListener | EventListenerObject;" + Pt.Printl "declare type EventListenerOrEventListenerObject> = EventListener | EventListenerObject;" Pt.Printl "" EmitCallBackFunctions flavor diff --git a/inputfiles/addedTypes.json b/inputfiles/addedTypes.json index 6e90700c3..6d5cc20e4 100644 --- a/inputfiles/addedTypes.json +++ b/inputfiles/addedTypes.json @@ -25,6 +25,24 @@ } ] }, + { + "kind": "interface", + "name": "EventTarget", + "methods": [ + { + "name": "addEventListener", + "signatures": ["addEventListener(type: string, listener?: EventListenerOrEventListenerObject>, useCapture?: boolean): void"] + }, + { + "name": "dispatchEvent", + "signatures": ["dispatchEvent(evt: Event): boolean"] + }, + { + "name": "removeEventListener", + "signatures": ["removeEventListener(type: string, listener?: EventListenerOrEventListenerObject>, useCapture?: boolean): void"] + } + ] + }, { "kind": "property", "interface": "CSSStyleDeclaration", diff --git a/inputfiles/removedTypes.json b/inputfiles/removedTypes.json index 9168ace44..f0efca4cb 100644 --- a/inputfiles/removedTypes.json +++ b/inputfiles/removedTypes.json @@ -77,5 +77,9 @@ { "kind": "typedef", "name": "JSON" + }, + { + "kind": "interface", + "name": "EventTarget" } ] From 9d80b4d75c119019ee07f780d0560566fef45631 Mon Sep 17 00:00:00 2001 From: Zhengbo Li Date: Mon, 13 Mar 2017 19:29:22 -0700 Subject: [PATCH 09/10] Update baseline --- baselines/dom.generated.d.ts | 156 ++++++++++++++--------------- baselines/webworker.generated.d.ts | 46 ++++----- 2 files changed, 101 insertions(+), 101 deletions(-) diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index be6c12a4a..32d926403 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -1167,7 +1167,7 @@ interface WheelEventInit extends MouseEventInit { deltaMode?: number; } -interface EventListener { +interface EventListener> { (evt: Event): void; } @@ -1213,7 +1213,7 @@ declare var AnalyserNode: { new(): AnalyserNode; } -interface AnimationEvent extends Event { +interface AnimationEvent = EventTarget> extends Event { readonly animationName: string; readonly elapsedTime: number; initAnimationEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, animationNameArg: string, elapsedTimeArg: number): void; @@ -1423,7 +1423,7 @@ declare var AudioParam: { new(): AudioParam; } -interface AudioProcessingEvent extends Event { +interface AudioProcessingEvent = EventTarget> extends Event { readonly inputBuffer: AudioBuffer; readonly outputBuffer: AudioBuffer; readonly playbackTime: number; @@ -1480,7 +1480,7 @@ declare var BarProp: { new(): BarProp; } -interface BeforeUnloadEvent extends Event { +interface BeforeUnloadEvent = EventTarget> extends Event { returnValue: any; } @@ -2236,7 +2236,7 @@ declare var ClientRectList: { new(): ClientRectList; } -interface ClipboardEvent extends Event { +interface ClipboardEvent = EventTarget> extends Event { readonly clipboardData: DataTransfer; } @@ -2245,7 +2245,7 @@ declare var ClipboardEvent: { new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent; } -interface CloseEvent extends Event { +interface CloseEvent = EventTarget> extends Event { readonly code: number; readonly reason: string; readonly wasClean: boolean; @@ -2266,7 +2266,7 @@ declare var Comment: { new(): Comment; } -interface CompositionEvent extends UIEvent { +interface CompositionEvent = EventTarget> extends UIEvent { readonly data: string; readonly locale: string; initCompositionEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, dataArg: string, locale: string): void; @@ -2363,7 +2363,7 @@ declare var CryptoKeyPair: { new(): CryptoKeyPair; } -interface CustomEvent extends Event { +interface CustomEvent = EventTarget> extends Event { readonly detail: any; initCustomEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, detailArg: any): void; } @@ -2603,7 +2603,7 @@ declare var DeviceAcceleration: { new(): DeviceAcceleration; } -interface DeviceLightEvent extends Event { +interface DeviceLightEvent = EventTarget> extends Event { readonly value: number; } @@ -2612,7 +2612,7 @@ declare var DeviceLightEvent: { new(typeArg: string, eventInitDict?: DeviceLightEventInit): DeviceLightEvent; } -interface DeviceMotionEvent extends Event { +interface DeviceMotionEvent = EventTarget> extends Event { readonly acceleration: DeviceAcceleration | null; readonly accelerationIncludingGravity: DeviceAcceleration | null; readonly interval: number | null; @@ -2625,7 +2625,7 @@ declare var DeviceMotionEvent: { new(typeArg: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent; } -interface DeviceOrientationEvent extends Event { +interface DeviceOrientationEvent = EventTarget> extends Event { readonly absolute: boolean; readonly alpha: number | null; readonly beta: number | null; @@ -3471,7 +3471,7 @@ declare var DocumentType: { new(): DocumentType; } -interface DragEvent extends MouseEvent { +interface DragEvent = EventTarget> extends MouseEvent { readonly dataTransfer: DataTransfer; initDragEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: EventTarget, dataTransferArg: DataTransfer): void; msConvertURL(file: File, targetType: string, targetURL?: string): void; @@ -3650,7 +3650,7 @@ declare var Element: { new(): Element; } -interface ErrorEvent extends Event { +interface ErrorEvent = EventTarget> extends Event { readonly colno: number; readonly error: any; readonly filename: string; @@ -3664,7 +3664,7 @@ declare var ErrorEvent: { new(type: string, errorEventInitDict?: ErrorEventInit): ErrorEvent; } -interface Event { +interface Event = EventTarget> { readonly bubbles: boolean; cancelBubble: boolean; readonly cancelable: boolean; @@ -3696,12 +3696,6 @@ declare var Event: { readonly CAPTURING_PHASE: number; } -interface EventTarget { - addEventListener(type: string, listener?: EventListenerOrEventListenerObject, useCapture?: boolean): void; - dispatchEvent(evt: Event): boolean; - removeEventListener(type: string, listener?: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - declare var EventTarget: { prototype: EventTarget; new(): EventTarget; @@ -3767,7 +3761,7 @@ declare var FileReader: { new(): FileReader; } -interface FocusEvent extends UIEvent { +interface FocusEvent = EventTarget> extends UIEvent { readonly relatedTarget: EventTarget; initFocusEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, relatedTargetArg: EventTarget): void; } @@ -3777,7 +3771,7 @@ declare var FocusEvent: { new(typeArg: string, eventInitDict?: FocusEventInit): FocusEvent; } -interface FocusNavigationEvent extends Event { +interface FocusNavigationEvent = EventTarget> extends Event { readonly navigationReason: string; readonly originHeight: number; readonly originLeft: number; @@ -3834,7 +3828,7 @@ declare var GamepadButton: { new(): GamepadButton; } -interface GamepadEvent extends Event { +interface GamepadEvent = EventTarget> extends Event { readonly gamepad: Gamepad; } @@ -6913,7 +6907,7 @@ declare var HTMLVideoElement: { new(): HTMLVideoElement; } -interface HashChangeEvent extends Event { +interface HashChangeEvent = EventTarget> extends Event { readonly newURL: string | null; readonly oldURL: string | null; } @@ -7149,7 +7143,7 @@ declare var IDBTransaction: { readonly VERSION_CHANGE: string; } -interface IDBVersionChangeEvent extends Event { +interface IDBVersionChangeEvent = EventTarget> extends Event { readonly newVersion: number | null; readonly oldVersion: number; } @@ -7209,7 +7203,7 @@ declare var IntersectionObserverEntry: { new(intersectionObserverEntryInit: IntersectionObserverEntryInit): IntersectionObserverEntry; } -interface KeyboardEvent extends UIEvent { +interface KeyboardEvent = EventTarget> extends UIEvent { readonly altKey: boolean; readonly char: string | null; readonly charCode: number; @@ -7244,7 +7238,7 @@ declare var KeyboardEvent: { readonly DOM_KEY_LOCATION_STANDARD: number; } -interface ListeningStateChangedEvent extends Event { +interface ListeningStateChangedEvent = EventTarget> extends Event { readonly label: string; readonly state: string; } @@ -7275,7 +7269,7 @@ declare var Location: { new(): Location; } -interface LongRunningScriptDetectedEvent extends Event { +interface LongRunningScriptDetectedEvent = EventTarget> extends Event { readonly executionTime: number; stopPageScriptExecution: boolean; } @@ -7408,7 +7402,7 @@ declare var MSGesture: { new(): MSGesture; } -interface MSGestureEvent extends UIEvent { +interface MSGestureEvent = EventTarget> extends UIEvent { readonly clientX: number; readonly clientY: number; readonly expansion: number; @@ -7514,7 +7508,7 @@ declare var MSInputMethodContext: { new(): MSInputMethodContext; } -interface MSManipulationEvent extends UIEvent { +interface MSManipulationEvent = EventTarget> extends UIEvent { readonly currentState: number; readonly inertiaDestinationX: number; readonly inertiaDestinationY: number; @@ -7565,7 +7559,7 @@ declare var MSMediaKeyError: { readonly MS_MEDIA_KEYERR_UNKNOWN: number; } -interface MSMediaKeyMessageEvent extends Event { +interface MSMediaKeyMessageEvent = EventTarget> extends Event { readonly destinationURL: string | null; readonly message: Uint8Array; } @@ -7575,7 +7569,7 @@ declare var MSMediaKeyMessageEvent: { new(): MSMediaKeyMessageEvent; } -interface MSMediaKeyNeededEvent extends Event { +interface MSMediaKeyNeededEvent = EventTarget> extends Event { readonly initData: Uint8Array | null; } @@ -7609,7 +7603,7 @@ declare var MSMediaKeys: { isTypeSupportedWithFeatures(keySystem: string, type?: string): string; } -interface MSPointerEvent extends MouseEvent { +interface MSPointerEvent = EventTarget> extends MouseEvent { readonly currentPoint: any; readonly height: number; readonly hwTimestamp: number; @@ -7643,7 +7637,7 @@ declare var MSRangeCollection: { new(): MSRangeCollection; } -interface MSSiteModeEvent extends Event { +interface MSSiteModeEvent = EventTarget> extends Event { readonly actionURL: string; readonly buttonID: number; } @@ -7763,7 +7757,7 @@ declare var MediaElementAudioSourceNode: { new(): MediaElementAudioSourceNode; } -interface MediaEncryptedEvent extends Event { +interface MediaEncryptedEvent = EventTarget> extends Event { readonly initData: ArrayBuffer | null; readonly initDataType: string; } @@ -7793,7 +7787,7 @@ declare var MediaError: { readonly MS_MEDIA_ERR_ENCRYPTED: number; } -interface MediaKeyMessageEvent extends Event { +interface MediaKeyMessageEvent = EventTarget> extends Event { readonly message: ArrayBuffer; readonly messageType: string; } @@ -7946,7 +7940,7 @@ declare var MediaStreamError: { new(): MediaStreamError; } -interface MediaStreamErrorEvent extends Event { +interface MediaStreamErrorEvent = EventTarget> extends Event { readonly error: MediaStreamError | null; } @@ -7955,7 +7949,7 @@ declare var MediaStreamErrorEvent: { new(typeArg: string, eventInitDict?: MediaStreamErrorEventInit): MediaStreamErrorEvent; } -interface MediaStreamEvent extends Event { +interface MediaStreamEvent = EventTarget> extends Event { readonly stream: MediaStream | null; } @@ -7999,7 +7993,7 @@ declare var MediaStreamTrack: { new(): MediaStreamTrack; } -interface MediaStreamTrackEvent extends Event { +interface MediaStreamTrackEvent = EventTarget> extends Event { readonly track: MediaStreamTrack; } @@ -8018,7 +8012,7 @@ declare var MessageChannel: { new(): MessageChannel; } -interface MessageEvent extends Event { +interface MessageEvent = EventTarget> extends Event { readonly data: any; readonly origin: string; readonly ports: any; @@ -8073,7 +8067,7 @@ declare var MimeTypeArray: { new(): MimeTypeArray; } -interface MouseEvent extends UIEvent { +interface MouseEvent = EventTarget> extends UIEvent { readonly altKey: boolean; readonly button: number; readonly buttons: number; @@ -8107,7 +8101,7 @@ declare var MouseEvent: { new(typeArg: string, eventInitDict?: MouseEventInit): MouseEvent; } -interface MutationEvent extends Event { +interface MutationEvent = EventTarget> extends Event { readonly attrChange: number; readonly attrName: string; readonly newValue: string; @@ -8172,7 +8166,7 @@ declare var NamedNodeMap: { new(): NamedNodeMap; } -interface NavigationCompletedEvent extends NavigationEvent { +interface NavigationCompletedEvent = EventTarget> extends NavigationEvent { readonly isSuccess: boolean; readonly webErrorStatus: number; } @@ -8182,7 +8176,7 @@ declare var NavigationCompletedEvent: { new(): NavigationCompletedEvent; } -interface NavigationEvent extends Event { +interface NavigationEvent = EventTarget> extends Event { readonly uri: string; } @@ -8191,7 +8185,7 @@ declare var NavigationEvent: { new(): NavigationEvent; } -interface NavigationEventWithReferrer extends NavigationEvent { +interface NavigationEventWithReferrer = EventTarget> extends NavigationEvent { readonly referer: string; } @@ -8433,7 +8427,7 @@ declare var OES_texture_half_float_linear: { new(): OES_texture_half_float_linear; } -interface OfflineAudioCompletionEvent extends Event { +interface OfflineAudioCompletionEvent = EventTarget> extends Event { readonly renderedBuffer: AudioBuffer; } @@ -8481,7 +8475,7 @@ declare var OscillatorNode: { new(): OscillatorNode; } -interface OverflowEvent extends UIEvent { +interface OverflowEvent = EventTarget> extends UIEvent { readonly horizontalOverflow: boolean; readonly orient: number; readonly verticalOverflow: boolean; @@ -8498,7 +8492,7 @@ declare var OverflowEvent: { readonly VERTICAL: number; } -interface PageTransitionEvent extends Event { +interface PageTransitionEvent = EventTarget> extends Event { readonly persisted: boolean; } @@ -8576,7 +8570,7 @@ declare var PaymentRequest: { new(methodData: PaymentMethodData[], details: PaymentDetails, options?: PaymentOptions): PaymentRequest; } -interface PaymentRequestUpdateEvent extends Event { +interface PaymentRequestUpdateEvent = EventTarget> extends Event { updateWith(d: Promise): void; } @@ -8799,7 +8793,7 @@ declare var PermissionRequest: { new(): PermissionRequest; } -interface PermissionRequestedEvent extends Event { +interface PermissionRequestedEvent = EventTarget> extends Event { readonly permissionRequest: PermissionRequest; } @@ -8837,7 +8831,7 @@ declare var PluginArray: { new(): PluginArray; } -interface PointerEvent extends MouseEvent { +interface PointerEvent = EventTarget> extends MouseEvent { readonly currentPoint: any; readonly height: number; readonly hwTimestamp: number; @@ -8860,7 +8854,7 @@ declare var PointerEvent: { new(typeArg: string, eventInitDict?: PointerEventInit): PointerEvent; } -interface PopStateEvent extends Event { +interface PopStateEvent = EventTarget> extends Event { readonly state: any; initPopStateEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, stateArg: any): void; } @@ -8906,7 +8900,7 @@ declare var ProcessingInstruction: { new(): ProcessingInstruction; } -interface ProgressEvent extends Event { +interface ProgressEvent = EventTarget> extends Event { readonly lengthComputable: boolean; readonly loaded: number; readonly total: number; @@ -8952,7 +8946,7 @@ declare var PushSubscriptionOptions: { new(): PushSubscriptionOptions; } -interface RTCDTMFToneChangeEvent extends Event { +interface RTCDTMFToneChangeEvent = EventTarget> extends Event { readonly tone: string; } @@ -8985,7 +8979,7 @@ declare var RTCDtlsTransport: { new(transport: RTCIceTransport): RTCDtlsTransport; } -interface RTCDtlsTransportStateChangedEvent extends Event { +interface RTCDtlsTransportStateChangedEvent = EventTarget> extends Event { readonly state: string; } @@ -9027,7 +9021,7 @@ declare var RTCIceCandidate: { new(candidateInitDict?: RTCIceCandidateInit): RTCIceCandidate; } -interface RTCIceCandidatePairChangedEvent extends Event { +interface RTCIceCandidatePairChangedEvent = EventTarget> extends Event { readonly pair: RTCIceCandidatePair; } @@ -9057,7 +9051,7 @@ declare var RTCIceGatherer: { new(options: RTCIceGatherOptions): RTCIceGatherer; } -interface RTCIceGathererEvent extends Event { +interface RTCIceGathererEvent = EventTarget> extends Event { readonly candidate: RTCIceCandidateDictionary | RTCIceCandidateComplete; } @@ -9095,7 +9089,7 @@ declare var RTCIceTransport: { new(): RTCIceTransport; } -interface RTCIceTransportStateChangedEvent extends Event { +interface RTCIceTransportStateChangedEvent = EventTarget> extends Event { readonly state: string; } @@ -9150,7 +9144,7 @@ declare var RTCPeerConnection: { new(configuration: RTCConfiguration): RTCPeerConnection; } -interface RTCPeerConnectionIceEvent extends Event { +interface RTCPeerConnectionIceEvent = EventTarget> extends Event { readonly candidate: RTCIceCandidate; } @@ -9236,7 +9230,7 @@ declare var RTCSrtpSdesTransport: { getLocalParameters(): RTCSrtpSdesParameters[]; } -interface RTCSsrcConflictEvent extends Event { +interface RTCSsrcConflictEvent = EventTarget> extends Event { readonly ssrc: number; } @@ -11134,7 +11128,7 @@ declare var SVGZoomAndPan: { readonly SVG_ZOOMANDPAN_UNKNOWN: number; } -interface SVGZoomEvent extends UIEvent { +interface SVGZoomEvent = EventTarget> extends UIEvent { readonly newScale: number; readonly newTranslate: SVGPoint; readonly previousScale: number; @@ -11199,7 +11193,7 @@ declare var Screen: { new(): Screen; } -interface ScriptNotifyEvent extends Event { +interface ScriptNotifyEvent = EventTarget> extends Event { readonly callingUri: string; readonly value: string; } @@ -11299,7 +11293,7 @@ declare var ServiceWorkerContainer: { new(): ServiceWorkerContainer; } -interface ServiceWorkerMessageEvent extends Event { +interface ServiceWorkerMessageEvent = EventTarget> extends Event { readonly data: any; readonly lastEventId: string; readonly origin: string; @@ -11391,7 +11385,7 @@ declare var SpeechSynthesis: { new(): SpeechSynthesis; } -interface SpeechSynthesisEvent extends Event { +interface SpeechSynthesisEvent = EventTarget> extends Event { readonly charIndex: number; readonly elapsedTime: number; readonly name: string; @@ -11474,7 +11468,7 @@ declare var Storage: { new(): Storage; } -interface StorageEvent extends Event { +interface StorageEvent = EventTarget> extends Event { readonly url: string; key?: string; oldValue?: string; @@ -11581,7 +11575,7 @@ declare var Text: { new(): Text; } -interface TextEvent extends UIEvent { +interface TextEvent = EventTarget> extends UIEvent { readonly data: string; readonly inputMethod: number; readonly locale: string; @@ -11746,7 +11740,7 @@ declare var Touch: { new(): Touch; } -interface TouchEvent extends UIEvent { +interface TouchEvent = EventTarget> extends UIEvent { readonly altKey: boolean; readonly changedTouches: TouchList; readonly charCode: number; @@ -11775,7 +11769,7 @@ declare var TouchList: { new(): TouchList; } -interface TrackEvent extends Event { +interface TrackEvent = EventTarget> extends Event { readonly track: VideoTrack | AudioTrack | TextTrack | null; } @@ -11784,7 +11778,7 @@ declare var TrackEvent: { new(typeArg: string, eventInitDict?: TrackEventInit): TrackEvent; } -interface TransitionEvent extends Event { +interface TransitionEvent = EventTarget> extends Event { readonly elapsedTime: number; readonly propertyName: string; initTransitionEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, propertyNameArg: string, elapsedTimeArg: number): void; @@ -11815,7 +11809,7 @@ declare var TreeWalker: { new(): TreeWalker; } -interface UIEvent extends Event { +interface UIEvent = EventTarget> extends Event { readonly detail: number; readonly view: Window; initUIEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number): void; @@ -11849,7 +11843,7 @@ declare var URL: { revokeObjectURL(url: string): void; } -interface UnviewableContentIdentifiedEvent extends NavigationEventWithReferrer { +interface UnviewableContentIdentifiedEvent = EventTarget> extends NavigationEventWithReferrer { readonly mediaType: string; } @@ -12016,7 +12010,7 @@ declare var WebGLBuffer: { new(): WebGLBuffer; } -interface WebGLContextEvent extends Event { +interface WebGLContextEvent = EventTarget> extends Event { readonly statusMessage: string; } @@ -12972,7 +12966,7 @@ declare var WebSocket: { readonly OPEN: number; } -interface WheelEvent extends MouseEvent { +interface WheelEvent = EventTarget> extends MouseEvent { readonly deltaMode: number; readonly deltaX: number; readonly deltaY: number; @@ -13462,7 +13456,7 @@ interface AbstractWorkerEventMap { "error": ErrorEvent; } -interface AbstractWorker { +interface AbstractWorker = EventTarget> { onerror: (this: AbstractWorker, ev: ErrorEvent) => any; } @@ -13597,7 +13591,7 @@ interface GlobalEventHandlersEventMap { "wheel": WheelEvent; } -interface GlobalEventHandlers { +interface GlobalEventHandlers = EventTarget> { onpointercancel: (this: GlobalEventHandlers, ev: PointerEvent) => any; onpointerdown: (this: GlobalEventHandlers, ev: PointerEvent) => any; onpointerenter: (this: GlobalEventHandlers, ev: PointerEvent) => any; @@ -13645,7 +13639,7 @@ interface MSBaseReaderEventMap { "progress": ProgressEvent; } -interface MSBaseReader { +interface MSBaseReader = EventTarget> { onabort: (this: MSBaseReader, ev: Event) => any; onerror: (this: MSBaseReader, ev: ErrorEvent) => any; onload: (this: MSBaseReader, ev: Event) => any; @@ -13795,7 +13789,7 @@ interface XMLHttpRequestEventTargetEventMap { "timeout": ProgressEvent; } -interface XMLHttpRequestEventTarget { +interface XMLHttpRequestEventTarget = EventTarget> { onabort: (this: XMLHttpRequestEventTarget, ev: Event) => any; onerror: (this: XMLHttpRequestEventTarget, ev: ErrorEvent) => any; onload: (this: XMLHttpRequestEventTarget, ev: Event) => any; @@ -13813,6 +13807,12 @@ interface ErrorEventInit { error?: any; } +interface EventTarget { + addEventListener(type: string, listener?: EventListenerOrEventListenerObject>, useCapture?: boolean): void; + dispatchEvent(evt: Event): boolean; + removeEventListener(type: string, listener?: EventListenerOrEventListenerObject>, useCapture?: boolean): void; +} + interface StorageEventInit extends EventInit { key?: string; oldValue?: string; @@ -14141,7 +14141,7 @@ interface PromiseRejectionEventInit extends EventInit { reason?: any; } -declare type EventListenerOrEventListenerObject = EventListener | EventListenerObject; +declare type EventListenerOrEventListenerObject> = EventListener | EventListenerObject; interface ErrorEventHandler { (message: string, filename?: string, lineno?: number, colno?: number, error?:Error): void; diff --git a/baselines/webworker.generated.d.ts b/baselines/webworker.generated.d.ts index 172a31ce7..ad1180b34 100644 --- a/baselines/webworker.generated.d.ts +++ b/baselines/webworker.generated.d.ts @@ -123,7 +123,7 @@ interface SyncEventInit extends ExtendableEventInit { lastChance?: boolean; } -interface EventListener { +interface EventListener> { (evt: Event): void; } @@ -195,7 +195,7 @@ declare var CacheStorage: { new(): CacheStorage; } -interface CloseEvent extends Event { +interface CloseEvent = EventTarget> extends Event { readonly code: number; readonly reason: string; readonly wasClean: boolean; @@ -352,7 +352,7 @@ declare var DOMStringList: { new(): DOMStringList; } -interface ErrorEvent extends Event { +interface ErrorEvent = EventTarget> extends Event { readonly colno: number; readonly error: any; readonly filename: string; @@ -366,7 +366,7 @@ declare var ErrorEvent: { new(type: string, errorEventInitDict?: ErrorEventInit): ErrorEvent; } -interface Event { +interface Event = EventTarget> { readonly bubbles: boolean; cancelBubble: boolean; readonly cancelable: boolean; @@ -398,12 +398,6 @@ declare var Event: { readonly CAPTURING_PHASE: number; } -interface EventTarget { - addEventListener(type: string, listener?: EventListenerOrEventListenerObject, useCapture?: boolean): void; - dispatchEvent(evt: Event): boolean; - removeEventListener(type: string, listener?: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - declare var EventTarget: { prototype: EventTarget; new(): EventTarget; @@ -656,7 +650,7 @@ declare var IDBTransaction: { readonly VERSION_CHANGE: string; } -interface IDBVersionChangeEvent extends Event { +interface IDBVersionChangeEvent = EventTarget> extends Event { readonly newVersion: number | null; readonly oldVersion: number; } @@ -688,7 +682,7 @@ declare var MessageChannel: { new(): MessageChannel; } -interface MessageEvent extends Event { +interface MessageEvent = EventTarget> extends Event { readonly data: any; readonly origin: string; readonly ports: any; @@ -849,7 +843,7 @@ declare var PositionError: { readonly TIMEOUT: number; } -interface ProgressEvent extends Event { +interface ProgressEvent = EventTarget> extends Event { readonly lengthComputable: boolean; readonly loaded: number; readonly total: number; @@ -1163,7 +1157,7 @@ interface AbstractWorkerEventMap { "error": ErrorEvent; } -interface AbstractWorker { +interface AbstractWorker = EventTarget> { onerror: (this: AbstractWorker, ev: ErrorEvent) => any; } @@ -1188,7 +1182,7 @@ interface MSBaseReaderEventMap { "progress": ProgressEvent; } -interface MSBaseReader { +interface MSBaseReader = EventTarget> { onabort: (this: MSBaseReader, ev: Event) => any; onerror: (this: MSBaseReader, ev: ErrorEvent) => any; onload: (this: MSBaseReader, ev: Event) => any; @@ -1246,7 +1240,7 @@ interface XMLHttpRequestEventTargetEventMap { "timeout": ProgressEvent; } -interface XMLHttpRequestEventTarget { +interface XMLHttpRequestEventTarget = EventTarget> { onabort: (this: XMLHttpRequestEventTarget, ev: Event) => any; onerror: (this: XMLHttpRequestEventTarget, ev: ErrorEvent) => any; onload: (this: XMLHttpRequestEventTarget, ev: Event) => any; @@ -1297,7 +1291,7 @@ declare var DedicatedWorkerGlobalScope: { new(): DedicatedWorkerGlobalScope; } -interface ExtendableEvent extends Event { +interface ExtendableEvent = EventTarget> extends Event { waitUntil(f: Promise): void; } @@ -1306,7 +1300,7 @@ declare var ExtendableEvent: { new(type: string, eventInitDict?: ExtendableEventInit): ExtendableEvent; } -interface ExtendableMessageEvent extends ExtendableEvent { +interface ExtendableMessageEvent = EventTarget> extends ExtendableEvent { readonly data: any; readonly lastEventId: string; readonly origin: string; @@ -1319,7 +1313,7 @@ declare var ExtendableMessageEvent: { new(type: string, eventInitDict?: ExtendableMessageEventInit): ExtendableMessageEvent; } -interface FetchEvent extends ExtendableEvent { +interface FetchEvent = EventTarget> extends ExtendableEvent { readonly clientId: string | null; readonly isReload: boolean; readonly request: Request; @@ -1343,7 +1337,7 @@ declare var FileReaderSync: { new(): FileReaderSync; } -interface NotificationEvent extends ExtendableEvent { +interface NotificationEvent = EventTarget> extends ExtendableEvent { readonly action: string; readonly notification: Notification; } @@ -1353,7 +1347,7 @@ declare var NotificationEvent: { new(type: string, eventInitDict: NotificationEventInit): NotificationEvent; } -interface PushEvent extends ExtendableEvent { +interface PushEvent = EventTarget> extends ExtendableEvent { readonly data: PushMessageData | null; } @@ -1408,7 +1402,7 @@ declare var ServiceWorkerGlobalScope: { new(): ServiceWorkerGlobalScope; } -interface SyncEvent extends ExtendableEvent { +interface SyncEvent = EventTarget> extends ExtendableEvent { readonly lastChance: boolean; readonly tag: string; } @@ -1502,6 +1496,12 @@ interface ErrorEventInit { error?: any; } +interface EventTarget { + addEventListener(type: string, listener?: EventListenerOrEventListenerObject>, useCapture?: boolean): void; + dispatchEvent(evt: Event): boolean; + removeEventListener(type: string, listener?: EventListenerOrEventListenerObject>, useCapture?: boolean): void; +} + interface BlobPropertyBag { type?: string; endings?: string; @@ -1696,7 +1696,7 @@ interface JsonWebKey { k?: string; } -declare type EventListenerOrEventListenerObject = EventListener | EventListenerObject; +declare type EventListenerOrEventListenerObject> = EventListener | EventListenerObject; interface ErrorEventHandler { (message: string, filename?: string, lineno?: number, colno?: number, error?:Error): void; From 1f837ef739d9912a92fa748002b51c6aa7f5f795 Mon Sep 17 00:00:00 2001 From: Zhengbo Li Date: Mon, 13 Mar 2017 19:37:12 -0700 Subject: [PATCH 10/10] Remove other types --- TS.fsx | 2 +- baselines/dom.generated.d.ts | 1210 ++++++++++++++-------------- baselines/webworker.generated.d.ts | 98 +-- 3 files changed, 655 insertions(+), 655 deletions(-) diff --git a/TS.fsx b/TS.fsx index 2d1785609..0712c3d99 100644 --- a/TS.fsx +++ b/TS.fsx @@ -908,7 +908,7 @@ module Emit = let ComputeEventTypeParameter containingInterfaceName flavor (prefix: string) = if prefix.StartsWith("declare ") then "<" + GetGlobalPollutorName flavor + ">" elif List.contains containingInterfaceName nonEventTargetTypes then "" - else "" + else "<" + containingInterfaceName + ">" let EmitProperties flavor prefix (emitScope: EmitScope) (i: Browser.Interface) (conflictedMembers: Set) = let emitPropertyFromJson (p: InputJsonType.Root) = diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index 32d926403..3d5903a09 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -1236,14 +1236,14 @@ interface ApplicationCacheEventMap { } interface ApplicationCache extends EventTarget { - oncached: (this: ApplicationCache, ev: Event) => any; - onchecking: (this: ApplicationCache, ev: Event) => any; - ondownloading: (this: ApplicationCache, ev: Event) => any; - onerror: (this: ApplicationCache, ev: Event) => any; - onnoupdate: (this: ApplicationCache, ev: Event) => any; - onobsolete: (this: ApplicationCache, ev: Event) => any; - onprogress: (this: ApplicationCache, ev: ProgressEvent) => any; - onupdateready: (this: ApplicationCache, ev: Event) => any; + oncached: (this: ApplicationCache, ev: Event) => any; + onchecking: (this: ApplicationCache, ev: Event) => any; + ondownloading: (this: ApplicationCache, ev: Event) => any; + onerror: (this: ApplicationCache, ev: Event) => any; + onnoupdate: (this: ApplicationCache, ev: Event) => any; + onobsolete: (this: ApplicationCache, ev: Event) => any; + onprogress: (this: ApplicationCache, ev: ProgressEvent) => any; + onupdateready: (this: ApplicationCache, ev: Event) => any; readonly status: number; abort(): void; swapCache(): void; @@ -1255,7 +1255,7 @@ interface ApplicationCache extends EventTarget { readonly UNCACHED: number; readonly UPDATEREADY: number; addEventListener(type: K, listener: (this: ApplicationCache, ev: ApplicationCacheEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var ApplicationCache: { @@ -1307,12 +1307,12 @@ interface AudioBufferSourceNode extends AudioNode { loop: boolean; loopEnd: number; loopStart: number; - onended: (this: AudioBufferSourceNode, ev: MediaStreamErrorEvent) => any; + onended: (this: AudioBufferSourceNode, ev: MediaStreamErrorEvent) => any; readonly playbackRate: AudioParam; start(when?: number, offset?: number, duration?: number): void; stop(when?: number): void; addEventListener(type: K, listener: (this: AudioBufferSourceNode, ev: AudioBufferSourceNodeEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var AudioBufferSourceNode: { @@ -1328,7 +1328,7 @@ interface AudioContextBase extends EventTarget { readonly currentTime: number; readonly destination: AudioDestinationNode; readonly listener: AudioListener; - onstatechange: (this: AudioContext, ev: Event) => any; + onstatechange: (this: AudioContext, ev: Event) => any; readonly sampleRate: number; readonly state: string; close(): Promise; @@ -1354,7 +1354,7 @@ interface AudioContextBase extends EventTarget { decodeAudioData(audioData: ArrayBuffer, successCallback?: DecodeSuccessCallback, errorCallback?: DecodeErrorCallback): Promise; resume(): Promise; addEventListener(type: K, listener: (this: AudioContext, ev: AudioContextEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } interface AudioContext extends AudioContextBase { @@ -1456,13 +1456,13 @@ interface AudioTrackListEventMap { interface AudioTrackList extends EventTarget { readonly length: number; - onaddtrack: (this: AudioTrackList, ev: TrackEvent) => any; - onchange: (this: AudioTrackList, ev: Event) => any; - onremovetrack: (this: AudioTrackList, ev: TrackEvent) => any; + onaddtrack: (this: AudioTrackList, ev: TrackEvent) => any; + onchange: (this: AudioTrackList, ev: Event) => any; + onremovetrack: (this: AudioTrackList, ev: TrackEvent) => any; getTrackById(id: string): AudioTrack | null; item(index: number): AudioTrack; addEventListener(type: K, listener: (this: AudioTrackList, ev: AudioTrackListEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; [index: number]: AudioTrack; } @@ -2519,7 +2519,7 @@ declare var DOMTokenList: { interface DataCue extends TextTrackCue { data: ArrayBuffer; addEventListener(type: K, listener: (this: DataCue, ev: TextTrackCueEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var DataCue: { @@ -2859,294 +2859,294 @@ interface Document extends Node, GlobalEventHandlers, NodeSelector, DocumentEven * Fires when the user aborts the download. * @param ev The event. */ - onabort: (this: Document, ev: UIEvent) => any; + onabort: (this: Document, ev: UIEvent) => any; /** * Fires when the object is set as the active element. * @param ev The event. */ - onactivate: (this: Document, ev: UIEvent) => any; + onactivate: (this: Document, ev: UIEvent) => any; /** * Fires immediately before the object is set as the active element. * @param ev The event. */ - onbeforeactivate: (this: Document, ev: UIEvent) => any; + onbeforeactivate: (this: Document, ev: UIEvent) => any; /** * Fires immediately before the activeElement is changed from the current object to another object in the parent document. * @param ev The event. */ - onbeforedeactivate: (this: Document, ev: UIEvent) => any; + onbeforedeactivate: (this: Document, ev: UIEvent) => any; /** * Fires when the object loses the input focus. * @param ev The focus event. */ - onblur: (this: Document, ev: FocusEvent) => any; + onblur: (this: Document, ev: FocusEvent) => any; /** * Occurs when playback is possible, but would require further buffering. * @param ev The event. */ - oncanplay: (this: Document, ev: Event) => any; - oncanplaythrough: (this: Document, ev: Event) => any; + oncanplay: (this: Document, ev: Event) => any; + oncanplaythrough: (this: Document, ev: Event) => any; /** * Fires when the contents of the object or selection have changed. * @param ev The event. */ - onchange: (this: Document, ev: Event) => any; + onchange: (this: Document, ev: Event) => any; /** * Fires when the user clicks the left mouse button on the object * @param ev The mouse event. */ - onclick: (this: Document, ev: MouseEvent) => any; + onclick: (this: Document, ev: MouseEvent) => any; /** * Fires when the user clicks the right mouse button in the client area, opening the context menu. * @param ev The mouse event. */ - oncontextmenu: (this: Document, ev: PointerEvent) => any; + oncontextmenu: (this: Document, ev: PointerEvent) => any; /** * Fires when the user double-clicks the object. * @param ev The mouse event. */ - ondblclick: (this: Document, ev: MouseEvent) => any; + ondblclick: (this: Document, ev: MouseEvent) => any; /** * Fires when the activeElement is changed from the current object to another object in the parent document. * @param ev The UI Event */ - ondeactivate: (this: Document, ev: UIEvent) => any; + ondeactivate: (this: Document, ev: UIEvent) => any; /** * Fires on the source object continuously during a drag operation. * @param ev The event. */ - ondrag: (this: Document, ev: DragEvent) => any; + ondrag: (this: Document, ev: DragEvent) => any; /** * Fires on the source object when the user releases the mouse at the close of a drag operation. * @param ev The event. */ - ondragend: (this: Document, ev: DragEvent) => any; + ondragend: (this: Document, ev: DragEvent) => any; /** * Fires on the target element when the user drags the object to a valid drop target. * @param ev The drag event. */ - ondragenter: (this: Document, ev: DragEvent) => any; + ondragenter: (this: Document, ev: DragEvent) => any; /** * Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation. * @param ev The drag event. */ - ondragleave: (this: Document, ev: DragEvent) => any; + ondragleave: (this: Document, ev: DragEvent) => any; /** * Fires on the target element continuously while the user drags the object over a valid drop target. * @param ev The event. */ - ondragover: (this: Document, ev: DragEvent) => any; + ondragover: (this: Document, ev: DragEvent) => any; /** * Fires on the source object when the user starts to drag a text selection or selected object. * @param ev The event. */ - ondragstart: (this: Document, ev: DragEvent) => any; - ondrop: (this: Document, ev: DragEvent) => any; + ondragstart: (this: Document, ev: DragEvent) => any; + ondrop: (this: Document, ev: DragEvent) => any; /** * Occurs when the duration attribute is updated. * @param ev The event. */ - ondurationchange: (this: Document, ev: Event) => any; + ondurationchange: (this: Document, ev: Event) => any; /** * Occurs when the media element is reset to its initial state. * @param ev The event. */ - onemptied: (this: Document, ev: Event) => any; + onemptied: (this: Document, ev: Event) => any; /** * Occurs when the end of playback is reached. * @param ev The event */ - onended: (this: Document, ev: MediaStreamErrorEvent) => any; + onended: (this: Document, ev: MediaStreamErrorEvent) => any; /** * Fires when an error occurs during object loading. * @param ev The event. */ - onerror: (this: Document, ev: ErrorEvent) => any; + onerror: (this: Document, ev: ErrorEvent) => any; /** * Fires when the object receives focus. * @param ev The event. */ - onfocus: (this: Document, ev: FocusEvent) => any; - onfullscreenchange: (this: Document, ev: Event) => any; - onfullscreenerror: (this: Document, ev: Event) => any; - oninput: (this: Document, ev: Event) => any; - oninvalid: (this: Document, ev: Event) => any; + onfocus: (this: Document, ev: FocusEvent) => any; + onfullscreenchange: (this: Document, ev: Event) => any; + onfullscreenerror: (this: Document, ev: Event) => any; + oninput: (this: Document, ev: Event) => any; + oninvalid: (this: Document, ev: Event) => any; /** * Fires when the user presses a key. * @param ev The keyboard event */ - onkeydown: (this: Document, ev: KeyboardEvent) => any; + onkeydown: (this: Document, ev: KeyboardEvent) => any; /** * Fires when the user presses an alphanumeric key. * @param ev The event. */ - onkeypress: (this: Document, ev: KeyboardEvent) => any; + onkeypress: (this: Document, ev: KeyboardEvent) => any; /** * Fires when the user releases a key. * @param ev The keyboard event */ - onkeyup: (this: Document, ev: KeyboardEvent) => any; + onkeyup: (this: Document, ev: KeyboardEvent) => any; /** * Fires immediately after the browser loads the object. * @param ev The event. */ - onload: (this: Document, ev: Event) => any; + onload: (this: Document, ev: Event) => any; /** * Occurs when media data is loaded at the current playback position. * @param ev The event. */ - onloadeddata: (this: Document, ev: Event) => any; + onloadeddata: (this: Document, ev: Event) => any; /** * Occurs when the duration and dimensions of the media have been determined. * @param ev The event. */ - onloadedmetadata: (this: Document, ev: Event) => any; + onloadedmetadata: (this: Document, ev: Event) => any; /** * Occurs when Internet Explorer begins looking for media data. * @param ev The event. */ - onloadstart: (this: Document, ev: Event) => any; + onloadstart: (this: Document, ev: Event) => any; /** * Fires when the user clicks the object with either mouse button. * @param ev The mouse event. */ - onmousedown: (this: Document, ev: MouseEvent) => any; + onmousedown: (this: Document, ev: MouseEvent) => any; /** * Fires when the user moves the mouse over the object. * @param ev The mouse event. */ - onmousemove: (this: Document, ev: MouseEvent) => any; + onmousemove: (this: Document, ev: MouseEvent) => any; /** * Fires when the user moves the mouse pointer outside the boundaries of the object. * @param ev The mouse event. */ - onmouseout: (this: Document, ev: MouseEvent) => any; + onmouseout: (this: Document, ev: MouseEvent) => any; /** * Fires when the user moves the mouse pointer into the object. * @param ev The mouse event. */ - onmouseover: (this: Document, ev: MouseEvent) => any; + onmouseover: (this: Document, ev: MouseEvent) => any; /** * Fires when the user releases a mouse button while the mouse is over the object. * @param ev The mouse event. */ - onmouseup: (this: Document, ev: MouseEvent) => any; + onmouseup: (this: Document, ev: MouseEvent) => any; /** * Fires when the wheel button is rotated. * @param ev The mouse event */ - onmousewheel: (this: Document, ev: WheelEvent) => any; - onmscontentzoom: (this: Document, ev: UIEvent) => any; - onmsgesturechange: (this: Document, ev: MSGestureEvent) => any; - onmsgesturedoubletap: (this: Document, ev: MSGestureEvent) => any; - onmsgestureend: (this: Document, ev: MSGestureEvent) => any; - onmsgesturehold: (this: Document, ev: MSGestureEvent) => any; - onmsgesturestart: (this: Document, ev: MSGestureEvent) => any; - onmsgesturetap: (this: Document, ev: MSGestureEvent) => any; - onmsinertiastart: (this: Document, ev: MSGestureEvent) => any; - onmsmanipulationstatechanged: (this: Document, ev: MSManipulationEvent) => any; - onmspointercancel: (this: Document, ev: MSPointerEvent) => any; - onmspointerdown: (this: Document, ev: MSPointerEvent) => any; - onmspointerenter: (this: Document, ev: MSPointerEvent) => any; - onmspointerleave: (this: Document, ev: MSPointerEvent) => any; - onmspointermove: (this: Document, ev: MSPointerEvent) => any; - onmspointerout: (this: Document, ev: MSPointerEvent) => any; - onmspointerover: (this: Document, ev: MSPointerEvent) => any; - onmspointerup: (this: Document, ev: MSPointerEvent) => any; + onmousewheel: (this: Document, ev: WheelEvent) => any; + onmscontentzoom: (this: Document, ev: UIEvent) => any; + onmsgesturechange: (this: Document, ev: MSGestureEvent) => any; + onmsgesturedoubletap: (this: Document, ev: MSGestureEvent) => any; + onmsgestureend: (this: Document, ev: MSGestureEvent) => any; + onmsgesturehold: (this: Document, ev: MSGestureEvent) => any; + onmsgesturestart: (this: Document, ev: MSGestureEvent) => any; + onmsgesturetap: (this: Document, ev: MSGestureEvent) => any; + onmsinertiastart: (this: Document, ev: MSGestureEvent) => any; + onmsmanipulationstatechanged: (this: Document, ev: MSManipulationEvent) => any; + onmspointercancel: (this: Document, ev: MSPointerEvent) => any; + onmspointerdown: (this: Document, ev: MSPointerEvent) => any; + onmspointerenter: (this: Document, ev: MSPointerEvent) => any; + onmspointerleave: (this: Document, ev: MSPointerEvent) => any; + onmspointermove: (this: Document, ev: MSPointerEvent) => any; + onmspointerout: (this: Document, ev: MSPointerEvent) => any; + onmspointerover: (this: Document, ev: MSPointerEvent) => any; + onmspointerup: (this: Document, ev: MSPointerEvent) => any; /** * Occurs when an item is removed from a Jump List of a webpage running in Site Mode. * @param ev The event. */ - onmssitemodejumplistitemremoved: (this: Document, ev: MSSiteModeEvent) => any; + onmssitemodejumplistitemremoved: (this: Document, ev: MSSiteModeEvent) => any; /** * Occurs when a user clicks a button in a Thumbnail Toolbar of a webpage running in Site Mode. * @param ev The event. */ - onmsthumbnailclick: (this: Document, ev: MSSiteModeEvent) => any; + onmsthumbnailclick: (this: Document, ev: MSSiteModeEvent) => any; /** * Occurs when playback is paused. * @param ev The event. */ - onpause: (this: Document, ev: Event) => any; + onpause: (this: Document, ev: Event) => any; /** * Occurs when the play method is requested. * @param ev The event. */ - onplay: (this: Document, ev: Event) => any; + onplay: (this: Document, ev: Event) => any; /** * Occurs when the audio or video has started playing. * @param ev The event. */ - onplaying: (this: Document, ev: Event) => any; - onpointerlockchange: (this: Document, ev: Event) => any; - onpointerlockerror: (this: Document, ev: Event) => any; + onplaying: (this: Document, ev: Event) => any; + onpointerlockchange: (this: Document, ev: Event) => any; + onpointerlockerror: (this: Document, ev: Event) => any; /** * Occurs to indicate progress while downloading media data. * @param ev The event. */ - onprogress: (this: Document, ev: ProgressEvent) => any; + onprogress: (this: Document, ev: ProgressEvent) => any; /** * Occurs when the playback rate is increased or decreased. * @param ev The event. */ - onratechange: (this: Document, ev: Event) => any; + onratechange: (this: Document, ev: Event) => any; /** * Fires when the state of the object has changed. * @param ev The event */ - onreadystatechange: (this: Document, ev: Event) => any; + onreadystatechange: (this: Document, ev: Event) => any; /** * Fires when the user resets a form. * @param ev The event. */ - onreset: (this: Document, ev: Event) => any; + onreset: (this: Document, ev: Event) => any; /** * Fires when the user repositions the scroll box in the scroll bar on the object. * @param ev The event. */ - onscroll: (this: Document, ev: UIEvent) => any; + onscroll: (this: Document, ev: UIEvent) => any; /** * Occurs when the seek operation ends. * @param ev The event. */ - onseeked: (this: Document, ev: Event) => any; + onseeked: (this: Document, ev: Event) => any; /** * Occurs when the current playback position is moved. * @param ev The event. */ - onseeking: (this: Document, ev: Event) => any; + onseeking: (this: Document, ev: Event) => any; /** * Fires when the current selection changes. * @param ev The event. */ - onselect: (this: Document, ev: UIEvent) => any; + onselect: (this: Document, ev: UIEvent) => any; /** * Fires when the selection state of a document changes. * @param ev The event. */ - onselectionchange: (this: Document, ev: Event) => any; - onselectstart: (this: Document, ev: Event) => any; + onselectionchange: (this: Document, ev: Event) => any; + onselectstart: (this: Document, ev: Event) => any; /** * Occurs when the download has stopped. * @param ev The event. */ - onstalled: (this: Document, ev: Event) => any; + onstalled: (this: Document, ev: Event) => any; /** * Fires when the user clicks the Stop button or leaves the Web page. * @param ev The event. */ - onstop: (this: Document, ev: Event) => any; - onsubmit: (this: Document, ev: Event) => any; + onstop: (this: Document, ev: Event) => any; + onsubmit: (this: Document, ev: Event) => any; /** * Occurs if the load operation has been intentionally halted. * @param ev The event. */ - onsuspend: (this: Document, ev: Event) => any; + onsuspend: (this: Document, ev: Event) => any; /** * Occurs to indicate the current playback position. * @param ev The event. */ - ontimeupdate: (this: Document, ev: Event) => any; + ontimeupdate: (this: Document, ev: Event) => any; ontouchcancel: (ev: TouchEvent) => any; ontouchend: (ev: TouchEvent) => any; ontouchmove: (ev: TouchEvent) => any; @@ -3155,14 +3155,14 @@ interface Document extends Node, GlobalEventHandlers, NodeSelector, DocumentEven * Occurs when the volume is changed, or playback is muted or unmuted. * @param ev The event. */ - onvolumechange: (this: Document, ev: Event) => any; + onvolumechange: (this: Document, ev: Event) => any; /** * Occurs when playback stops because the next frame of a video resource is not available. * @param ev The event. */ - onwaiting: (this: Document, ev: Event) => any; - onwebkitfullscreenchange: (this: Document, ev: Event) => any; - onwebkitfullscreenerror: (this: Document, ev: Event) => any; + onwaiting: (this: Document, ev: Event) => any; + onwebkitfullscreenchange: (this: Document, ev: Event) => any; + onwebkitfullscreenerror: (this: Document, ev: Event) => any; plugins: HTMLCollectionOf; readonly pointerLockElement: Element; /** @@ -3441,7 +3441,7 @@ interface Document extends Node, GlobalEventHandlers, NodeSelector, DocumentEven */ writeln(...content: string[]): void; addEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var Document: { @@ -3557,33 +3557,33 @@ interface Element extends Node, GlobalEventHandlers, ElementTraversal, innerHTML: string; msContentZoomFactor: number; readonly msRegionOverflow: string; - onariarequest: (this: Element, ev: Event) => any; - oncommand: (this: Element, ev: Event) => any; - ongotpointercapture: (this: Element, ev: PointerEvent) => any; - onlostpointercapture: (this: Element, ev: PointerEvent) => any; - onmsgesturechange: (this: Element, ev: MSGestureEvent) => any; - onmsgesturedoubletap: (this: Element, ev: MSGestureEvent) => any; - onmsgestureend: (this: Element, ev: MSGestureEvent) => any; - onmsgesturehold: (this: Element, ev: MSGestureEvent) => any; - onmsgesturestart: (this: Element, ev: MSGestureEvent) => any; - onmsgesturetap: (this: Element, ev: MSGestureEvent) => any; - onmsgotpointercapture: (this: Element, ev: MSPointerEvent) => any; - onmsinertiastart: (this: Element, ev: MSGestureEvent) => any; - onmslostpointercapture: (this: Element, ev: MSPointerEvent) => any; - onmspointercancel: (this: Element, ev: MSPointerEvent) => any; - onmspointerdown: (this: Element, ev: MSPointerEvent) => any; - onmspointerenter: (this: Element, ev: MSPointerEvent) => any; - onmspointerleave: (this: Element, ev: MSPointerEvent) => any; - onmspointermove: (this: Element, ev: MSPointerEvent) => any; - onmspointerout: (this: Element, ev: MSPointerEvent) => any; - onmspointerover: (this: Element, ev: MSPointerEvent) => any; - onmspointerup: (this: Element, ev: MSPointerEvent) => any; + onariarequest: (this: Element, ev: Event) => any; + oncommand: (this: Element, ev: Event) => any; + ongotpointercapture: (this: Element, ev: PointerEvent) => any; + onlostpointercapture: (this: Element, ev: PointerEvent) => any; + onmsgesturechange: (this: Element, ev: MSGestureEvent) => any; + onmsgesturedoubletap: (this: Element, ev: MSGestureEvent) => any; + onmsgestureend: (this: Element, ev: MSGestureEvent) => any; + onmsgesturehold: (this: Element, ev: MSGestureEvent) => any; + onmsgesturestart: (this: Element, ev: MSGestureEvent) => any; + onmsgesturetap: (this: Element, ev: MSGestureEvent) => any; + onmsgotpointercapture: (this: Element, ev: MSPointerEvent) => any; + onmsinertiastart: (this: Element, ev: MSGestureEvent) => any; + onmslostpointercapture: (this: Element, ev: MSPointerEvent) => any; + onmspointercancel: (this: Element, ev: MSPointerEvent) => any; + onmspointerdown: (this: Element, ev: MSPointerEvent) => any; + onmspointerenter: (this: Element, ev: MSPointerEvent) => any; + onmspointerleave: (this: Element, ev: MSPointerEvent) => any; + onmspointermove: (this: Element, ev: MSPointerEvent) => any; + onmspointerout: (this: Element, ev: MSPointerEvent) => any; + onmspointerover: (this: Element, ev: MSPointerEvent) => any; + onmspointerup: (this: Element, ev: MSPointerEvent) => any; ontouchcancel: (ev: TouchEvent) => any; ontouchend: (ev: TouchEvent) => any; ontouchmove: (ev: TouchEvent) => any; ontouchstart: (ev: TouchEvent) => any; - onwebkitfullscreenchange: (this: Element, ev: Event) => any; - onwebkitfullscreenerror: (this: Element, ev: Event) => any; + onwebkitfullscreenchange: (this: Element, ev: Event) => any; + onwebkitfullscreenerror: (this: Element, ev: Event) => any; outerHTML: string; readonly prefix: string | null; readonly scrollHeight: number; @@ -3642,7 +3642,7 @@ interface Element extends Node, GlobalEventHandlers, ElementTraversal, insertAdjacentText(where: string, text: string): void; attachShadow(shadowRootInitDict: ShadowRootInit): ShadowRoot; addEventListener(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var Element: { @@ -3753,7 +3753,7 @@ interface FileReader extends EventTarget, MSBaseReader { readAsDataURL(blob: Blob): void; readAsText(blob: Blob, encoding?: string): void; addEventListener(type: K, listener: (this: FileReader, ev: MSBaseReaderEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var FileReader: { @@ -3941,7 +3941,7 @@ interface HTMLAnchorElement extends HTMLElement { */ toString(): string; addEventListener(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLAnchorElement: { @@ -4015,7 +4015,7 @@ interface HTMLAppletElement extends HTMLElement { vspace: number; width: number; addEventListener(type: K, listener: (this: HTMLAppletElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLAppletElement: { @@ -4083,7 +4083,7 @@ interface HTMLAreaElement extends HTMLElement { */ toString(): string; addEventListener(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLAreaElement: { @@ -4101,7 +4101,7 @@ declare var HTMLAreasCollection: { interface HTMLAudioElement extends HTMLMediaElement { addEventListener(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLAudioElement: { @@ -4115,7 +4115,7 @@ interface HTMLBRElement extends HTMLElement { */ clear: string; addEventListener(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLBRElement: { @@ -4133,7 +4133,7 @@ interface HTMLBaseElement extends HTMLElement { */ target: string; addEventListener(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLBaseElement: { @@ -4151,7 +4151,7 @@ interface HTMLBaseFontElement extends HTMLElement, DOML2DeprecatedColorProperty */ size: number; addEventListener(type: K, listener: (this: HTMLBaseFontElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLBaseFontElement: { @@ -4188,29 +4188,29 @@ interface HTMLBodyElement extends HTMLElement { bgProperties: string; link: any; noWrap: boolean; - onafterprint: (this: HTMLBodyElement, ev: Event) => any; - onbeforeprint: (this: HTMLBodyElement, ev: Event) => any; - onbeforeunload: (this: HTMLBodyElement, ev: BeforeUnloadEvent) => any; - onblur: (this: HTMLBodyElement, ev: FocusEvent) => any; - onerror: (this: HTMLBodyElement, ev: ErrorEvent) => any; - onfocus: (this: HTMLBodyElement, ev: FocusEvent) => any; - onhashchange: (this: HTMLBodyElement, ev: HashChangeEvent) => any; - onload: (this: HTMLBodyElement, ev: Event) => any; - onmessage: (this: HTMLBodyElement, ev: MessageEvent) => any; - onoffline: (this: HTMLBodyElement, ev: Event) => any; - ononline: (this: HTMLBodyElement, ev: Event) => any; - onorientationchange: (this: HTMLBodyElement, ev: Event) => any; - onpagehide: (this: HTMLBodyElement, ev: PageTransitionEvent) => any; - onpageshow: (this: HTMLBodyElement, ev: PageTransitionEvent) => any; - onpopstate: (this: HTMLBodyElement, ev: PopStateEvent) => any; - onresize: (this: HTMLBodyElement, ev: UIEvent) => any; - onscroll: (this: HTMLBodyElement, ev: UIEvent) => any; - onstorage: (this: HTMLBodyElement, ev: StorageEvent) => any; - onunload: (this: HTMLBodyElement, ev: Event) => any; + onafterprint: (this: HTMLBodyElement, ev: Event) => any; + onbeforeprint: (this: HTMLBodyElement, ev: Event) => any; + onbeforeunload: (this: HTMLBodyElement, ev: BeforeUnloadEvent) => any; + onblur: (this: HTMLBodyElement, ev: FocusEvent) => any; + onerror: (this: HTMLBodyElement, ev: ErrorEvent) => any; + onfocus: (this: HTMLBodyElement, ev: FocusEvent) => any; + onhashchange: (this: HTMLBodyElement, ev: HashChangeEvent) => any; + onload: (this: HTMLBodyElement, ev: Event) => any; + onmessage: (this: HTMLBodyElement, ev: MessageEvent) => any; + onoffline: (this: HTMLBodyElement, ev: Event) => any; + ononline: (this: HTMLBodyElement, ev: Event) => any; + onorientationchange: (this: HTMLBodyElement, ev: Event) => any; + onpagehide: (this: HTMLBodyElement, ev: PageTransitionEvent) => any; + onpageshow: (this: HTMLBodyElement, ev: PageTransitionEvent) => any; + onpopstate: (this: HTMLBodyElement, ev: PopStateEvent) => any; + onresize: (this: HTMLBodyElement, ev: UIEvent) => any; + onscroll: (this: HTMLBodyElement, ev: UIEvent) => any; + onstorage: (this: HTMLBodyElement, ev: StorageEvent) => any; + onunload: (this: HTMLBodyElement, ev: Event) => any; text: any; vLink: any; addEventListener(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLBodyElement: { @@ -4283,7 +4283,7 @@ interface HTMLButtonElement extends HTMLElement { */ setCustomValidity(error: string): void; addEventListener(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLButtonElement: { @@ -4318,7 +4318,7 @@ interface HTMLCanvasElement extends HTMLElement { toDataURL(type?: string, ...args: any[]): string; toBlob(callback: (result: Blob | null) => void, type?: string, ...arguments: any[]): void; addEventListener(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLCanvasElement: { @@ -4353,7 +4353,7 @@ declare var HTMLCollection: { interface HTMLDListElement extends HTMLElement { compact: boolean; addEventListener(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLDListElement: { @@ -4364,7 +4364,7 @@ declare var HTMLDListElement: { interface HTMLDataElement extends HTMLElement { value: string; addEventListener(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLDataElement: { @@ -4375,7 +4375,7 @@ declare var HTMLDataElement: { interface HTMLDataListElement extends HTMLElement { options: HTMLCollectionOf; addEventListener(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLDataListElement: { @@ -4386,7 +4386,7 @@ declare var HTMLDataListElement: { interface HTMLDirectoryElement extends HTMLElement { compact: boolean; addEventListener(type: K, listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLDirectoryElement: { @@ -4404,7 +4404,7 @@ interface HTMLDivElement extends HTMLElement { */ noWrap: boolean; addEventListener(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLDivElement: { @@ -4414,7 +4414,7 @@ declare var HTMLDivElement: { interface HTMLDocument extends Document { addEventListener(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLDocument: { @@ -4509,73 +4509,73 @@ interface HTMLElement extends Element { readonly offsetParent: Element; readonly offsetTop: number; readonly offsetWidth: number; - onabort: (this: HTMLElement, ev: UIEvent) => any; - onactivate: (this: HTMLElement, ev: UIEvent) => any; - onbeforeactivate: (this: HTMLElement, ev: UIEvent) => any; - onbeforecopy: (this: HTMLElement, ev: ClipboardEvent) => any; - onbeforecut: (this: HTMLElement, ev: ClipboardEvent) => any; - onbeforedeactivate: (this: HTMLElement, ev: UIEvent) => any; - onbeforepaste: (this: HTMLElement, ev: ClipboardEvent) => any; - onblur: (this: HTMLElement, ev: FocusEvent) => any; - oncanplay: (this: HTMLElement, ev: Event) => any; - oncanplaythrough: (this: HTMLElement, ev: Event) => any; - onchange: (this: HTMLElement, ev: Event) => any; - onclick: (this: HTMLElement, ev: MouseEvent) => any; - oncontextmenu: (this: HTMLElement, ev: PointerEvent) => any; - oncopy: (this: HTMLElement, ev: ClipboardEvent) => any; - oncuechange: (this: HTMLElement, ev: Event) => any; - oncut: (this: HTMLElement, ev: ClipboardEvent) => any; - ondblclick: (this: HTMLElement, ev: MouseEvent) => any; - ondeactivate: (this: HTMLElement, ev: UIEvent) => any; - ondrag: (this: HTMLElement, ev: DragEvent) => any; - ondragend: (this: HTMLElement, ev: DragEvent) => any; - ondragenter: (this: HTMLElement, ev: DragEvent) => any; - ondragleave: (this: HTMLElement, ev: DragEvent) => any; - ondragover: (this: HTMLElement, ev: DragEvent) => any; - ondragstart: (this: HTMLElement, ev: DragEvent) => any; - ondrop: (this: HTMLElement, ev: DragEvent) => any; - ondurationchange: (this: HTMLElement, ev: Event) => any; - onemptied: (this: HTMLElement, ev: Event) => any; - onended: (this: HTMLElement, ev: MediaStreamErrorEvent) => any; - onerror: (this: HTMLElement, ev: ErrorEvent) => any; - onfocus: (this: HTMLElement, ev: FocusEvent) => any; - oninput: (this: HTMLElement, ev: Event) => any; - oninvalid: (this: HTMLElement, ev: Event) => any; - onkeydown: (this: HTMLElement, ev: KeyboardEvent) => any; - onkeypress: (this: HTMLElement, ev: KeyboardEvent) => any; - onkeyup: (this: HTMLElement, ev: KeyboardEvent) => any; - onload: (this: HTMLElement, ev: Event) => any; - onloadeddata: (this: HTMLElement, ev: Event) => any; - onloadedmetadata: (this: HTMLElement, ev: Event) => any; - onloadstart: (this: HTMLElement, ev: Event) => any; - onmousedown: (this: HTMLElement, ev: MouseEvent) => any; - onmouseenter: (this: HTMLElement, ev: MouseEvent) => any; - onmouseleave: (this: HTMLElement, ev: MouseEvent) => any; - onmousemove: (this: HTMLElement, ev: MouseEvent) => any; - onmouseout: (this: HTMLElement, ev: MouseEvent) => any; - onmouseover: (this: HTMLElement, ev: MouseEvent) => any; - onmouseup: (this: HTMLElement, ev: MouseEvent) => any; - onmousewheel: (this: HTMLElement, ev: WheelEvent) => any; - onmscontentzoom: (this: HTMLElement, ev: UIEvent) => any; - onmsmanipulationstatechanged: (this: HTMLElement, ev: MSManipulationEvent) => any; - onpaste: (this: HTMLElement, ev: ClipboardEvent) => any; - onpause: (this: HTMLElement, ev: Event) => any; - onplay: (this: HTMLElement, ev: Event) => any; - onplaying: (this: HTMLElement, ev: Event) => any; - onprogress: (this: HTMLElement, ev: ProgressEvent) => any; - onratechange: (this: HTMLElement, ev: Event) => any; - onreset: (this: HTMLElement, ev: Event) => any; - onscroll: (this: HTMLElement, ev: UIEvent) => any; - onseeked: (this: HTMLElement, ev: Event) => any; - onseeking: (this: HTMLElement, ev: Event) => any; - onselect: (this: HTMLElement, ev: UIEvent) => any; - onselectstart: (this: HTMLElement, ev: Event) => any; - onstalled: (this: HTMLElement, ev: Event) => any; - onsubmit: (this: HTMLElement, ev: Event) => any; - onsuspend: (this: HTMLElement, ev: Event) => any; - ontimeupdate: (this: HTMLElement, ev: Event) => any; - onvolumechange: (this: HTMLElement, ev: Event) => any; - onwaiting: (this: HTMLElement, ev: Event) => any; + onabort: (this: HTMLElement, ev: UIEvent) => any; + onactivate: (this: HTMLElement, ev: UIEvent) => any; + onbeforeactivate: (this: HTMLElement, ev: UIEvent) => any; + onbeforecopy: (this: HTMLElement, ev: ClipboardEvent) => any; + onbeforecut: (this: HTMLElement, ev: ClipboardEvent) => any; + onbeforedeactivate: (this: HTMLElement, ev: UIEvent) => any; + onbeforepaste: (this: HTMLElement, ev: ClipboardEvent) => any; + onblur: (this: HTMLElement, ev: FocusEvent) => any; + oncanplay: (this: HTMLElement, ev: Event) => any; + oncanplaythrough: (this: HTMLElement, ev: Event) => any; + onchange: (this: HTMLElement, ev: Event) => any; + onclick: (this: HTMLElement, ev: MouseEvent) => any; + oncontextmenu: (this: HTMLElement, ev: PointerEvent) => any; + oncopy: (this: HTMLElement, ev: ClipboardEvent) => any; + oncuechange: (this: HTMLElement, ev: Event) => any; + oncut: (this: HTMLElement, ev: ClipboardEvent) => any; + ondblclick: (this: HTMLElement, ev: MouseEvent) => any; + ondeactivate: (this: HTMLElement, ev: UIEvent) => any; + ondrag: (this: HTMLElement, ev: DragEvent) => any; + ondragend: (this: HTMLElement, ev: DragEvent) => any; + ondragenter: (this: HTMLElement, ev: DragEvent) => any; + ondragleave: (this: HTMLElement, ev: DragEvent) => any; + ondragover: (this: HTMLElement, ev: DragEvent) => any; + ondragstart: (this: HTMLElement, ev: DragEvent) => any; + ondrop: (this: HTMLElement, ev: DragEvent) => any; + ondurationchange: (this: HTMLElement, ev: Event) => any; + onemptied: (this: HTMLElement, ev: Event) => any; + onended: (this: HTMLElement, ev: MediaStreamErrorEvent) => any; + onerror: (this: HTMLElement, ev: ErrorEvent) => any; + onfocus: (this: HTMLElement, ev: FocusEvent) => any; + oninput: (this: HTMLElement, ev: Event) => any; + oninvalid: (this: HTMLElement, ev: Event) => any; + onkeydown: (this: HTMLElement, ev: KeyboardEvent) => any; + onkeypress: (this: HTMLElement, ev: KeyboardEvent) => any; + onkeyup: (this: HTMLElement, ev: KeyboardEvent) => any; + onload: (this: HTMLElement, ev: Event) => any; + onloadeddata: (this: HTMLElement, ev: Event) => any; + onloadedmetadata: (this: HTMLElement, ev: Event) => any; + onloadstart: (this: HTMLElement, ev: Event) => any; + onmousedown: (this: HTMLElement, ev: MouseEvent) => any; + onmouseenter: (this: HTMLElement, ev: MouseEvent) => any; + onmouseleave: (this: HTMLElement, ev: MouseEvent) => any; + onmousemove: (this: HTMLElement, ev: MouseEvent) => any; + onmouseout: (this: HTMLElement, ev: MouseEvent) => any; + onmouseover: (this: HTMLElement, ev: MouseEvent) => any; + onmouseup: (this: HTMLElement, ev: MouseEvent) => any; + onmousewheel: (this: HTMLElement, ev: WheelEvent) => any; + onmscontentzoom: (this: HTMLElement, ev: UIEvent) => any; + onmsmanipulationstatechanged: (this: HTMLElement, ev: MSManipulationEvent) => any; + onpaste: (this: HTMLElement, ev: ClipboardEvent) => any; + onpause: (this: HTMLElement, ev: Event) => any; + onplay: (this: HTMLElement, ev: Event) => any; + onplaying: (this: HTMLElement, ev: Event) => any; + onprogress: (this: HTMLElement, ev: ProgressEvent) => any; + onratechange: (this: HTMLElement, ev: Event) => any; + onreset: (this: HTMLElement, ev: Event) => any; + onscroll: (this: HTMLElement, ev: UIEvent) => any; + onseeked: (this: HTMLElement, ev: Event) => any; + onseeking: (this: HTMLElement, ev: Event) => any; + onselect: (this: HTMLElement, ev: UIEvent) => any; + onselectstart: (this: HTMLElement, ev: Event) => any; + onstalled: (this: HTMLElement, ev: Event) => any; + onsubmit: (this: HTMLElement, ev: Event) => any; + onsuspend: (this: HTMLElement, ev: Event) => any; + ontimeupdate: (this: HTMLElement, ev: Event) => any; + onvolumechange: (this: HTMLElement, ev: Event) => any; + onwaiting: (this: HTMLElement, ev: Event) => any; outerText: string; spellcheck: boolean; readonly style: CSSStyleDeclaration; @@ -4587,7 +4587,7 @@ interface HTMLElement extends Element { focus(): void; msGetInputContext(): MSInputMethodContext; addEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLElement: { @@ -4643,7 +4643,7 @@ interface HTMLEmbedElement extends HTMLElement, GetSVGDocument { */ width: string; addEventListener(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLEmbedElement: { @@ -4684,7 +4684,7 @@ interface HTMLFieldSetElement extends HTMLElement { */ setCustomValidity(error: string): void; addEventListener(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLFieldSetElement: { @@ -4698,7 +4698,7 @@ interface HTMLFontElement extends HTMLElement, DOML2DeprecatedColorProperty, DOM */ face: string; addEventListener(type: K, listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLFontElement: { @@ -4783,7 +4783,7 @@ interface HTMLFormElement extends HTMLElement { */ submit(): void; addEventListener(type: K, listener: (this: HTMLFormElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; [name: string]: any; } @@ -4848,7 +4848,7 @@ interface HTMLFrameElement extends HTMLElement, GetSVGDocument { /** * Raised when the object has been completely received from the server. */ - onload: (this: HTMLFrameElement, ev: Event) => any; + onload: (this: HTMLFrameElement, ev: Event) => any; /** * Sets or retrieves whether the frame can be scrolled. */ @@ -4862,7 +4862,7 @@ interface HTMLFrameElement extends HTMLElement, GetSVGDocument { */ width: string | number; addEventListener(type: K, listener: (this: HTMLFrameElement, ev: HTMLFrameElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLFrameElement: { @@ -4911,37 +4911,37 @@ interface HTMLFrameSetElement extends HTMLElement { */ frameSpacing: any; name: string; - onafterprint: (this: HTMLFrameSetElement, ev: Event) => any; - onbeforeprint: (this: HTMLFrameSetElement, ev: Event) => any; - onbeforeunload: (this: HTMLFrameSetElement, ev: BeforeUnloadEvent) => any; + onafterprint: (this: HTMLFrameSetElement, ev: Event) => any; + onbeforeprint: (this: HTMLFrameSetElement, ev: Event) => any; + onbeforeunload: (this: HTMLFrameSetElement, ev: BeforeUnloadEvent) => any; /** * Fires when the object loses the input focus. */ - onblur: (this: HTMLFrameSetElement, ev: FocusEvent) => any; - onerror: (this: HTMLFrameSetElement, ev: ErrorEvent) => any; + onblur: (this: HTMLFrameSetElement, ev: FocusEvent) => any; + onerror: (this: HTMLFrameSetElement, ev: ErrorEvent) => any; /** * Fires when the object receives focus. */ - onfocus: (this: HTMLFrameSetElement, ev: FocusEvent) => any; - onhashchange: (this: HTMLFrameSetElement, ev: HashChangeEvent) => any; - onload: (this: HTMLFrameSetElement, ev: Event) => any; - onmessage: (this: HTMLFrameSetElement, ev: MessageEvent) => any; - onoffline: (this: HTMLFrameSetElement, ev: Event) => any; - ononline: (this: HTMLFrameSetElement, ev: Event) => any; - onorientationchange: (this: HTMLFrameSetElement, ev: Event) => any; - onpagehide: (this: HTMLFrameSetElement, ev: PageTransitionEvent) => any; - onpageshow: (this: HTMLFrameSetElement, ev: PageTransitionEvent) => any; - onpopstate: (this: HTMLFrameSetElement, ev: PopStateEvent) => any; - onresize: (this: HTMLFrameSetElement, ev: UIEvent) => any; - onscroll: (this: HTMLFrameSetElement, ev: UIEvent) => any; - onstorage: (this: HTMLFrameSetElement, ev: StorageEvent) => any; - onunload: (this: HTMLFrameSetElement, ev: Event) => any; + onfocus: (this: HTMLFrameSetElement, ev: FocusEvent) => any; + onhashchange: (this: HTMLFrameSetElement, ev: HashChangeEvent) => any; + onload: (this: HTMLFrameSetElement, ev: Event) => any; + onmessage: (this: HTMLFrameSetElement, ev: MessageEvent) => any; + onoffline: (this: HTMLFrameSetElement, ev: Event) => any; + ononline: (this: HTMLFrameSetElement, ev: Event) => any; + onorientationchange: (this: HTMLFrameSetElement, ev: Event) => any; + onpagehide: (this: HTMLFrameSetElement, ev: PageTransitionEvent) => any; + onpageshow: (this: HTMLFrameSetElement, ev: PageTransitionEvent) => any; + onpopstate: (this: HTMLFrameSetElement, ev: PopStateEvent) => any; + onresize: (this: HTMLFrameSetElement, ev: UIEvent) => any; + onscroll: (this: HTMLFrameSetElement, ev: UIEvent) => any; + onstorage: (this: HTMLFrameSetElement, ev: StorageEvent) => any; + onunload: (this: HTMLFrameSetElement, ev: Event) => any; /** * Sets or retrieves the frame heights of the object. */ rows: string; addEventListener(type: K, listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLFrameSetElement: { @@ -4963,7 +4963,7 @@ interface HTMLHRElement extends HTMLElement, DOML2DeprecatedColorProperty, DOML2 */ width: number; addEventListener(type: K, listener: (this: HTMLHRElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLHRElement: { @@ -4974,7 +4974,7 @@ declare var HTMLHRElement: { interface HTMLHeadElement extends HTMLElement { profile: string; addEventListener(type: K, listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLHeadElement: { @@ -4988,7 +4988,7 @@ interface HTMLHeadingElement extends HTMLElement { */ align: string; addEventListener(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLHeadingElement: { @@ -5002,7 +5002,7 @@ interface HTMLHtmlElement extends HTMLElement { */ version: string; addEventListener(type: K, listener: (this: HTMLHtmlElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLHtmlElement: { @@ -5072,7 +5072,7 @@ interface HTMLIFrameElement extends HTMLElement, GetSVGDocument { /** * Raised when the object has been completely received from the server. */ - onload: (this: HTMLIFrameElement, ev: Event) => any; + onload: (this: HTMLIFrameElement, ev: Event) => any; readonly sandbox: DOMSettableTokenList; /** * Sets or retrieves whether the frame can be scrolled. @@ -5091,7 +5091,7 @@ interface HTMLIFrameElement extends HTMLElement, GetSVGDocument { */ width: string; addEventListener(type: K, listener: (this: HTMLIFrameElement, ev: HTMLIFrameElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLIFrameElement: { @@ -5182,7 +5182,7 @@ interface HTMLImageElement extends HTMLElement { readonly y: number; msGetAsCastingSource(): any; addEventListener(type: K, listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLImageElement: { @@ -5394,7 +5394,7 @@ interface HTMLInputElement extends HTMLElement { */ stepUp(n?: number): void; addEventListener(type: K, listener: (this: HTMLInputElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLInputElement: { @@ -5409,7 +5409,7 @@ interface HTMLLIElement extends HTMLElement { */ value: number; addEventListener(type: K, listener: (this: HTMLLIElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLLIElement: { @@ -5427,7 +5427,7 @@ interface HTMLLabelElement extends HTMLElement { */ htmlFor: string; addEventListener(type: K, listener: (this: HTMLLabelElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLLabelElement: { @@ -5445,7 +5445,7 @@ interface HTMLLegendElement extends HTMLElement { */ readonly form: HTMLFormElement; addEventListener(type: K, listener: (this: HTMLLegendElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLLegendElement: { @@ -5490,7 +5490,7 @@ interface HTMLLinkElement extends HTMLElement, LinkStyle { import?: Document; integrity: string; addEventListener(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLLinkElement: { @@ -5508,7 +5508,7 @@ interface HTMLMapElement extends HTMLElement { */ name: string; addEventListener(type: K, listener: (this: HTMLMapElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLMapElement: { @@ -5529,9 +5529,9 @@ interface HTMLMarqueeElement extends HTMLElement { height: string; hspace: number; loop: number; - onbounce: (this: HTMLMarqueeElement, ev: Event) => any; - onfinish: (this: HTMLMarqueeElement, ev: Event) => any; - onstart: (this: HTMLMarqueeElement, ev: Event) => any; + onbounce: (this: HTMLMarqueeElement, ev: Event) => any; + onfinish: (this: HTMLMarqueeElement, ev: Event) => any; + onstart: (this: HTMLMarqueeElement, ev: Event) => any; scrollAmount: number; scrollDelay: number; trueSpeed: boolean; @@ -5540,7 +5540,7 @@ interface HTMLMarqueeElement extends HTMLElement { start(): void; stop(): void; addEventListener(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLMarqueeElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLMarqueeElement: { @@ -5642,8 +5642,8 @@ interface HTMLMediaElement extends HTMLElement { * Gets the current network activity for the element. */ readonly networkState: number; - onencrypted: (this: HTMLMediaElement, ev: MediaEncryptedEvent) => any; - onmsneedkey: (this: HTMLMediaElement, ev: MSMediaKeyNeededEvent) => any; + onencrypted: (this: HTMLMediaElement, ev: MediaEncryptedEvent) => any; + onmsneedkey: (this: HTMLMediaElement, ev: MSMediaKeyNeededEvent) => any; /** * Gets a flag that specifies whether playback is paused. */ @@ -5722,7 +5722,7 @@ interface HTMLMediaElement extends HTMLElement { readonly NETWORK_LOADING: number; readonly NETWORK_NO_SOURCE: number; addEventListener(type: K, listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLMediaElement: { @@ -5743,7 +5743,7 @@ interface HTMLMenuElement extends HTMLElement { compact: boolean; type: string; addEventListener(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLMenuElement: { @@ -5777,7 +5777,7 @@ interface HTMLMetaElement extends HTMLElement { */ url: string; addEventListener(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLMetaElement: { @@ -5793,7 +5793,7 @@ interface HTMLMeterElement extends HTMLElement { optimum: number; value: number; addEventListener(type: K, listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLMeterElement: { @@ -5811,7 +5811,7 @@ interface HTMLModElement extends HTMLElement { */ dateTime: string; addEventListener(type: K, listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLModElement: { @@ -5827,7 +5827,7 @@ interface HTMLOListElement extends HTMLElement { start: number; type: string; addEventListener(type: K, listener: (this: HTMLOListElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLOListElement: { @@ -5944,7 +5944,7 @@ interface HTMLObjectElement extends HTMLElement, GetSVGDocument { */ setCustomValidity(error: string): void; addEventListener(type: K, listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLObjectElement: { @@ -5983,7 +5983,7 @@ interface HTMLOptGroupElement extends HTMLElement { */ value: string; addEventListener(type: K, listener: (this: HTMLOptGroupElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLOptGroupElement: { @@ -6022,7 +6022,7 @@ interface HTMLOptionElement extends HTMLElement { */ value: string; addEventListener(type: K, listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLOptionElement: { @@ -6056,7 +6056,7 @@ interface HTMLOutputElement extends HTMLElement { reportValidity(): boolean; setCustomValidity(error: string): void; addEventListener(type: K, listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLOutputElement: { @@ -6071,7 +6071,7 @@ interface HTMLParagraphElement extends HTMLElement { align: string; clear: string; addEventListener(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLParagraphElement: { @@ -6097,7 +6097,7 @@ interface HTMLParamElement extends HTMLElement { */ valueType: string; addEventListener(type: K, listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLParamElement: { @@ -6107,7 +6107,7 @@ declare var HTMLParamElement: { interface HTMLPictureElement extends HTMLElement { addEventListener(type: K, listener: (this: HTMLPictureElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLPictureElement: { @@ -6121,7 +6121,7 @@ interface HTMLPreElement extends HTMLElement { */ width: number; addEventListener(type: K, listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLPreElement: { @@ -6147,7 +6147,7 @@ interface HTMLProgressElement extends HTMLElement { */ value: number; addEventListener(type: K, listener: (this: HTMLProgressElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLProgressElement: { @@ -6161,7 +6161,7 @@ interface HTMLQuoteElement extends HTMLElement { */ cite: string; addEventListener(type: K, listener: (this: HTMLQuoteElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLQuoteElement: { @@ -6202,7 +6202,7 @@ interface HTMLScriptElement extends HTMLElement { type: string; integrity: string; addEventListener(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLScriptElement: { @@ -6298,7 +6298,7 @@ interface HTMLSelectElement extends HTMLElement { */ setCustomValidity(error: string): void; addEventListener(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; [name: string]: any; } @@ -6324,7 +6324,7 @@ interface HTMLSourceElement extends HTMLElement { */ type: string; addEventListener(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLSourceElement: { @@ -6334,7 +6334,7 @@ declare var HTMLSourceElement: { interface HTMLSpanElement extends HTMLElement { addEventListener(type: K, listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLSpanElement: { @@ -6353,7 +6353,7 @@ interface HTMLStyleElement extends HTMLElement, LinkStyle { */ type: string; addEventListener(type: K, listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLStyleElement: { @@ -6371,7 +6371,7 @@ interface HTMLTableCaptionElement extends HTMLElement { */ vAlign: string; addEventListener(type: K, listener: (this: HTMLTableCaptionElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLTableCaptionElement: { @@ -6426,7 +6426,7 @@ interface HTMLTableCellElement extends HTMLElement, HTMLTableAlignment { */ width: string; addEventListener(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLTableCellElement: { @@ -6448,7 +6448,7 @@ interface HTMLTableColElement extends HTMLElement, HTMLTableAlignment { */ width: any; addEventListener(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLTableColElement: { @@ -6458,7 +6458,7 @@ declare var HTMLTableColElement: { interface HTMLTableDataCellElement extends HTMLTableCellElement { addEventListener(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLTableDataCellElement: { @@ -6571,7 +6571,7 @@ interface HTMLTableElement extends HTMLElement { */ insertRow(index?: number): HTMLTableRowElement; addEventListener(type: K, listener: (this: HTMLTableElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLTableElement: { @@ -6585,7 +6585,7 @@ interface HTMLTableHeaderCellElement extends HTMLTableCellElement { */ scope: string; addEventListener(type: K, listener: (this: HTMLTableHeaderCellElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLTableHeaderCellElement: { @@ -6626,7 +6626,7 @@ interface HTMLTableRowElement extends HTMLElement, HTMLTableAlignment { */ insertCell(index?: number): HTMLTableDataCellElement; addEventListener(type: K, listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLTableRowElement: { @@ -6654,7 +6654,7 @@ interface HTMLTableSectionElement extends HTMLElement, HTMLTableAlignment { */ insertRow(index?: number): HTMLTableRowElement; addEventListener(type: K, listener: (this: HTMLTableSectionElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLTableSectionElement: { @@ -6665,7 +6665,7 @@ declare var HTMLTableSectionElement: { interface HTMLTemplateElement extends HTMLElement { readonly content: DocumentFragment; addEventListener(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLTemplateElement: { @@ -6772,7 +6772,7 @@ interface HTMLTextAreaElement extends HTMLElement { */ setSelectionRange(start: number, end: number): void; addEventListener(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLTextAreaElement: { @@ -6783,7 +6783,7 @@ declare var HTMLTextAreaElement: { interface HTMLTimeElement extends HTMLElement { dateTime: string; addEventListener(type: K, listener: (this: HTMLTimeElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLTimeElement: { @@ -6797,7 +6797,7 @@ interface HTMLTitleElement extends HTMLElement { */ text: string; addEventListener(type: K, listener: (this: HTMLTitleElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLTitleElement: { @@ -6818,7 +6818,7 @@ interface HTMLTrackElement extends HTMLElement { readonly LOADING: number; readonly NONE: number; addEventListener(type: K, listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLTrackElement: { @@ -6834,7 +6834,7 @@ interface HTMLUListElement extends HTMLElement { compact: boolean; type: string; addEventListener(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLUListElement: { @@ -6844,7 +6844,7 @@ declare var HTMLUListElement: { interface HTMLUnknownElement extends HTMLElement { addEventListener(type: K, listener: (this: HTMLUnknownElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLUnknownElement: { @@ -6869,9 +6869,9 @@ interface HTMLVideoElement extends HTMLMediaElement { msStereo3DPackingMode: string; msStereo3DRenderMode: string; msZoom: boolean; - onMSVideoFormatChanged: (this: HTMLVideoElement, ev: Event) => any; - onMSVideoFrameStepCompleted: (this: HTMLVideoElement, ev: Event) => any; - onMSVideoOptimalLayoutChanged: (this: HTMLVideoElement, ev: Event) => any; + onMSVideoFormatChanged: (this: HTMLVideoElement, ev: Event) => any; + onMSVideoFrameStepCompleted: (this: HTMLVideoElement, ev: Event) => any; + onMSVideoOptimalLayoutChanged: (this: HTMLVideoElement, ev: Event) => any; /** * Gets or sets a URL of an image to display, for example, like a movie poster. This can be a still frame from the video, or another image if no video data is available. */ @@ -6899,7 +6899,7 @@ interface HTMLVideoElement extends HTMLMediaElement { webkitExitFullScreen(): void; webkitExitFullscreen(): void; addEventListener(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var HTMLVideoElement: { @@ -6988,8 +6988,8 @@ interface IDBDatabaseEventMap { interface IDBDatabase extends EventTarget { readonly name: string; readonly objectStoreNames: DOMStringList; - onabort: (this: IDBDatabase, ev: Event) => any; - onerror: (this: IDBDatabase, ev: Event) => any; + onabort: (this: IDBDatabase, ev: Event) => any; + onerror: (this: IDBDatabase, ev: Event) => any; version: number; onversionchange: (ev: IDBVersionChangeEvent) => any; close(): void; @@ -6998,7 +6998,7 @@ interface IDBDatabase extends EventTarget { transaction(storeNames: string | string[], mode?: string): IDBTransaction; addEventListener(type: "versionchange", listener: (ev: IDBVersionChangeEvent) => any, useCapture?: boolean): void; addEventListener(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var IDBDatabase: { @@ -7080,10 +7080,10 @@ interface IDBOpenDBRequestEventMap extends IDBRequestEventMap { } interface IDBOpenDBRequest extends IDBRequest { - onblocked: (this: IDBOpenDBRequest, ev: Event) => any; - onupgradeneeded: (this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any; + onblocked: (this: IDBOpenDBRequest, ev: Event) => any; + onupgradeneeded: (this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any; addEventListener(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var IDBOpenDBRequest: { @@ -7098,14 +7098,14 @@ interface IDBRequestEventMap { interface IDBRequest extends EventTarget { readonly error: DOMError; - onerror: (this: IDBRequest, ev: Event) => any; - onsuccess: (this: IDBRequest, ev: Event) => any; + onerror: (this: IDBRequest, ev: Event) => any; + onsuccess: (this: IDBRequest, ev: Event) => any; readonly readyState: string; readonly result: any; source: IDBObjectStore | IDBIndex | IDBCursor; readonly transaction: IDBTransaction; addEventListener(type: K, listener: (this: IDBRequest, ev: IDBRequestEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var IDBRequest: { @@ -7123,16 +7123,16 @@ interface IDBTransaction extends EventTarget { readonly db: IDBDatabase; readonly error: DOMError; readonly mode: string; - onabort: (this: IDBTransaction, ev: Event) => any; - oncomplete: (this: IDBTransaction, ev: Event) => any; - onerror: (this: IDBTransaction, ev: Event) => any; + onabort: (this: IDBTransaction, ev: Event) => any; + oncomplete: (this: IDBTransaction, ev: Event) => any; + onerror: (this: IDBTransaction, ev: Event) => any; abort(): void; objectStore(name: string): IDBObjectStore; readonly READ_ONLY: string; readonly READ_WRITE: string; readonly VERSION_CHANGE: string; addEventListener(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var IDBTransaction: { @@ -7309,8 +7309,8 @@ interface MSAppAsyncOperationEventMap { interface MSAppAsyncOperation extends EventTarget { readonly error: DOMError; - oncomplete: (this: MSAppAsyncOperation, ev: Event) => any; - onerror: (this: MSAppAsyncOperation, ev: Event) => any; + oncomplete: (this: MSAppAsyncOperation, ev: Event) => any; + onerror: (this: MSAppAsyncOperation, ev: Event) => any; readonly readyState: number; readonly result: any; start(): void; @@ -7318,7 +7318,7 @@ interface MSAppAsyncOperation extends EventTarget { readonly ERROR: number; readonly STARTED: number; addEventListener(type: K, listener: (this: MSAppAsyncOperation, ev: MSAppAsyncOperationEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var MSAppAsyncOperation: { @@ -7474,7 +7474,7 @@ interface MSHTMLWebViewElement extends HTMLElement { refresh(): void; stop(): void; addEventListener(type: K, listener: (this: MSHTMLWebViewElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var MSHTMLWebViewElement: { @@ -7491,16 +7491,16 @@ interface MSInputMethodContextEventMap { interface MSInputMethodContext extends EventTarget { readonly compositionEndOffset: number; readonly compositionStartOffset: number; - oncandidatewindowhide: (this: MSInputMethodContext, ev: Event) => any; - oncandidatewindowshow: (this: MSInputMethodContext, ev: Event) => any; - oncandidatewindowupdate: (this: MSInputMethodContext, ev: Event) => any; + oncandidatewindowhide: (this: MSInputMethodContext, ev: Event) => any; + oncandidatewindowshow: (this: MSInputMethodContext, ev: Event) => any; + oncandidatewindowupdate: (this: MSInputMethodContext, ev: Event) => any; readonly target: HTMLElement; getCandidateWindowClientRect(): ClientRect; getCompositionAlternatives(): string[]; hasComposition(): boolean; isCandidateWindowVisible(): boolean; addEventListener(type: K, listener: (this: MSInputMethodContext, ev: MSInputMethodContextEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var MSInputMethodContext: { @@ -7666,7 +7666,7 @@ interface MSStreamReader extends EventTarget, MSBaseReader { readAsDataURL(stream: MSStream, size?: number): void; readAsText(stream: MSStream, encoding?: string, size?: number): void; addEventListener(type: K, listener: (this: MSStreamReader, ev: MSBaseReaderEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var MSStreamReader: { @@ -7681,8 +7681,8 @@ interface MSWebViewAsyncOperationEventMap { interface MSWebViewAsyncOperation extends EventTarget { readonly error: DOMError; - oncomplete: (this: MSWebViewAsyncOperation, ev: Event) => any; - onerror: (this: MSWebViewAsyncOperation, ev: Event) => any; + oncomplete: (this: MSWebViewAsyncOperation, ev: Event) => any; + onerror: (this: MSWebViewAsyncOperation, ev: Event) => any; readonly readyState: number; readonly result: any; readonly target: MSHTMLWebViewElement; @@ -7695,7 +7695,7 @@ interface MSWebViewAsyncOperation extends EventTarget { readonly TYPE_CREATE_DATA_PACKAGE_FROM_SELECTION: number; readonly TYPE_INVOKE_SCRIPT: number; addEventListener(type: K, listener: (this: MSWebViewAsyncOperation, ev: MSWebViewAsyncOperationEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var MSWebViewAsyncOperation: { @@ -7736,12 +7736,12 @@ interface MediaDevicesEventMap { } interface MediaDevices extends EventTarget { - ondevicechange: (this: MediaDevices, ev: Event) => any; + ondevicechange: (this: MediaDevices, ev: Event) => any; enumerateDevices(): any; getSupportedConstraints(): MediaTrackSupportedConstraints; getUserMedia(constraints: MediaStreamConstraints): Promise; addEventListener(type: K, listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var MediaDevices: { @@ -7900,10 +7900,10 @@ interface MediaStreamEventMap { interface MediaStream extends EventTarget { readonly active: boolean; readonly id: string; - onactive: (this: MediaStream, ev: Event) => any; - onaddtrack: (this: MediaStream, ev: MediaStreamTrackEvent) => any; - oninactive: (this: MediaStream, ev: Event) => any; - onremovetrack: (this: MediaStream, ev: MediaStreamTrackEvent) => any; + onactive: (this: MediaStream, ev: Event) => any; + onaddtrack: (this: MediaStream, ev: MediaStreamTrackEvent) => any; + oninactive: (this: MediaStream, ev: Event) => any; + onremovetrack: (this: MediaStream, ev: MediaStreamTrackEvent) => any; addTrack(track: MediaStreamTrack): void; clone(): MediaStream; getAudioTracks(): MediaStreamTrack[]; @@ -7913,7 +7913,7 @@ interface MediaStream extends EventTarget { removeTrack(track: MediaStreamTrack): void; stop(): void; addEventListener(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var MediaStream: { @@ -7971,10 +7971,10 @@ interface MediaStreamTrack extends EventTarget { readonly kind: string; readonly label: string; readonly muted: boolean; - onended: (this: MediaStreamTrack, ev: MediaStreamErrorEvent) => any; - onmute: (this: MediaStreamTrack, ev: Event) => any; - onoverconstrained: (this: MediaStreamTrack, ev: MediaStreamErrorEvent) => any; - onunmute: (this: MediaStreamTrack, ev: Event) => any; + onended: (this: MediaStreamTrack, ev: MediaStreamErrorEvent) => any; + onmute: (this: MediaStreamTrack, ev: Event) => any; + onoverconstrained: (this: MediaStreamTrack, ev: MediaStreamErrorEvent) => any; + onunmute: (this: MediaStreamTrack, ev: Event) => any; readonly readonly: boolean; readonly readyState: string; readonly remote: boolean; @@ -7985,7 +7985,7 @@ interface MediaStreamTrack extends EventTarget { getSettings(): MediaTrackSettings; stop(): void; addEventListener(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var MediaStreamTrack: { @@ -8030,12 +8030,12 @@ interface MessagePortEventMap { } interface MessagePort extends EventTarget { - onmessage: (this: MessagePort, ev: MessageEvent) => any; + onmessage: (this: MessagePort, ev: MessageEvent) => any; close(): void; postMessage(message?: any, transfer?: any[]): void; start(): void; addEventListener(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var MessagePort: { @@ -8357,16 +8357,16 @@ interface Notification extends EventTarget { readonly dir: string; 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; + 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 tag: string; readonly title: string; close(): void; addEventListener(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var Notification: { @@ -8442,11 +8442,11 @@ interface OfflineAudioContextEventMap extends AudioContextEventMap { interface OfflineAudioContext extends AudioContextBase { readonly length: number; - oncomplete: (this: OfflineAudioContext, ev: OfflineAudioCompletionEvent) => any; + oncomplete: (this: OfflineAudioContext, ev: OfflineAudioCompletionEvent) => any; startRendering(): Promise; suspend(suspendTime: number): Promise; addEventListener(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var OfflineAudioContext: { @@ -8461,13 +8461,13 @@ interface OscillatorNodeEventMap { interface OscillatorNode extends AudioNode { readonly detune: AudioParam; readonly frequency: AudioParam; - onended: (this: OscillatorNode, ev: MediaStreamErrorEvent) => any; + onended: (this: OscillatorNode, ev: MediaStreamErrorEvent) => any; type: string; setPeriodicWave(periodicWave: PeriodicWave): void; start(when?: number): void; stop(when?: number): void; addEventListener(type: K, listener: (this: OscillatorNode, ev: OscillatorNodeEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var OscillatorNode: { @@ -8554,15 +8554,15 @@ interface PaymentRequestEventMap { } interface PaymentRequest extends EventTarget { - onshippingaddresschange: (this: PaymentRequest, ev: Event) => any; - onshippingoptionchange: (this: PaymentRequest, ev: Event) => any; + onshippingaddresschange: (this: PaymentRequest, ev: Event) => any; + onshippingoptionchange: (this: PaymentRequest, ev: Event) => any; readonly shippingAddress: PaymentAddress | null; readonly shippingOption: string | null; readonly shippingType: string | null; abort(): Promise; show(): Promise; addEventListener(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var PaymentRequest: { @@ -8961,8 +8961,8 @@ interface RTCDtlsTransportEventMap { } interface RTCDtlsTransport extends RTCStatsProvider { - ondtlsstatechange: ((this: RTCDtlsTransport, ev: RTCDtlsTransportStateChangedEvent) => any) | null; - onerror: ((this: RTCDtlsTransport, ev: Event) => any) | null; + ondtlsstatechange: ((this: RTCDtlsTransport, ev: RTCDtlsTransportStateChangedEvent) => any) | null; + onerror: ((this: RTCDtlsTransport, ev: Event) => any) | null; readonly state: string; readonly transport: RTCIceTransport; getLocalParameters(): RTCDtlsParameters; @@ -8971,7 +8971,7 @@ interface RTCDtlsTransport extends RTCStatsProvider { start(remoteParameters: RTCDtlsParameters): void; stop(): void; addEventListener(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var RTCDtlsTransport: { @@ -8996,12 +8996,12 @@ interface RTCDtmfSender extends EventTarget { readonly canInsertDTMF: boolean; readonly duration: number; readonly interToneGap: number; - ontonechange: (this: RTCDtmfSender, ev: RTCDTMFToneChangeEvent) => any; + ontonechange: (this: RTCDtmfSender, ev: RTCDTMFToneChangeEvent) => any; readonly sender: RTCRtpSender; readonly toneBuffer: string; insertDTMF(tones: string, duration?: number, interToneGap?: number): void; addEventListener(type: K, listener: (this: RTCDtmfSender, ev: RTCDtmfSenderEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var RTCDtmfSender: { @@ -9037,13 +9037,13 @@ interface RTCIceGathererEventMap { interface RTCIceGatherer extends RTCStatsProvider { readonly component: string; - onerror: ((this: RTCIceGatherer, ev: Event) => any) | null; - onlocalcandidate: ((this: RTCIceGatherer, ev: RTCIceGathererEvent) => any) | null; + onerror: ((this: RTCIceGatherer, ev: Event) => any) | null; + onlocalcandidate: ((this: RTCIceGatherer, ev: RTCIceGathererEvent) => any) | null; createAssociatedGatherer(): RTCIceGatherer; getLocalCandidates(): RTCIceCandidateDictionary[]; getLocalParameters(): RTCIceParameters; addEventListener(type: K, listener: (this: RTCIceGatherer, ev: RTCIceGathererEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var RTCIceGatherer: { @@ -9068,8 +9068,8 @@ interface RTCIceTransportEventMap { interface RTCIceTransport extends RTCStatsProvider { readonly component: string; readonly iceGatherer: RTCIceGatherer | null; - oncandidatepairchange: ((this: RTCIceTransport, ev: RTCIceCandidatePairChangedEvent) => any) | null; - onicestatechange: ((this: RTCIceTransport, ev: RTCIceTransportStateChangedEvent) => any) | null; + oncandidatepairchange: ((this: RTCIceTransport, ev: RTCIceCandidatePairChangedEvent) => any) | null; + onicestatechange: ((this: RTCIceTransport, ev: RTCIceTransportStateChangedEvent) => any) | null; readonly role: string; readonly state: string; addRemoteCandidate(remoteCandidate: RTCIceCandidateDictionary | RTCIceCandidateComplete): void; @@ -9081,7 +9081,7 @@ interface RTCIceTransport extends RTCStatsProvider { start(gatherer: RTCIceGatherer, remoteParameters: RTCIceParameters, role?: string): void; stop(): void; addEventListener(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var RTCIceTransport: { @@ -9113,13 +9113,13 @@ interface RTCPeerConnection extends EventTarget { readonly iceConnectionState: string; readonly iceGatheringState: string; readonly localDescription: RTCSessionDescription | null; - onaddstream: (this: RTCPeerConnection, ev: MediaStreamEvent) => any; - onicecandidate: (this: RTCPeerConnection, ev: RTCPeerConnectionIceEvent) => any; - oniceconnectionstatechange: (this: RTCPeerConnection, ev: Event) => any; - onicegatheringstatechange: (this: RTCPeerConnection, ev: Event) => any; - onnegotiationneeded: (this: RTCPeerConnection, ev: Event) => any; - onremovestream: (this: RTCPeerConnection, ev: MediaStreamEvent) => any; - onsignalingstatechange: (this: RTCPeerConnection, ev: Event) => any; + onaddstream: (this: RTCPeerConnection, ev: MediaStreamEvent) => any; + onicecandidate: (this: RTCPeerConnection, ev: RTCPeerConnectionIceEvent) => any; + oniceconnectionstatechange: (this: RTCPeerConnection, ev: Event) => any; + onicegatheringstatechange: (this: RTCPeerConnection, ev: Event) => any; + onnegotiationneeded: (this: RTCPeerConnection, ev: Event) => any; + onremovestream: (this: RTCPeerConnection, ev: MediaStreamEvent) => any; + onsignalingstatechange: (this: RTCPeerConnection, ev: Event) => any; readonly remoteDescription: RTCSessionDescription | null; readonly signalingState: string; addIceCandidate(candidate: RTCIceCandidate, successCallback?: VoidFunction, failureCallback?: RTCPeerConnectionErrorCallback): Promise; @@ -9136,7 +9136,7 @@ interface RTCPeerConnection extends EventTarget { setLocalDescription(description: RTCSessionDescription, successCallback?: VoidFunction, failureCallback?: RTCPeerConnectionErrorCallback): Promise; setRemoteDescription(description: RTCSessionDescription, successCallback?: VoidFunction, failureCallback?: RTCPeerConnectionErrorCallback): Promise; addEventListener(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var RTCPeerConnection: { @@ -9158,7 +9158,7 @@ interface RTCRtpReceiverEventMap { } interface RTCRtpReceiver extends RTCStatsProvider { - onerror: ((this: RTCRtpReceiver, ev: Event) => any) | null; + onerror: ((this: RTCRtpReceiver, ev: Event) => any) | null; readonly rtcpTransport: RTCDtlsTransport; readonly track: MediaStreamTrack | null; readonly transport: RTCDtlsTransport | RTCSrtpSdesTransport; @@ -9168,7 +9168,7 @@ interface RTCRtpReceiver extends RTCStatsProvider { setTransport(transport: RTCDtlsTransport | RTCSrtpSdesTransport, rtcpTransport?: RTCDtlsTransport): void; stop(): void; addEventListener(type: K, listener: (this: RTCRtpReceiver, ev: RTCRtpReceiverEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var RTCRtpReceiver: { @@ -9183,8 +9183,8 @@ interface RTCRtpSenderEventMap { } interface RTCRtpSender extends RTCStatsProvider { - onerror: ((this: RTCRtpSender, ev: Event) => any) | null; - onssrcconflict: ((this: RTCRtpSender, ev: RTCSsrcConflictEvent) => any) | null; + onerror: ((this: RTCRtpSender, ev: Event) => any) | null; + onssrcconflict: ((this: RTCRtpSender, ev: RTCSsrcConflictEvent) => any) | null; readonly rtcpTransport: RTCDtlsTransport; readonly track: MediaStreamTrack; readonly transport: RTCDtlsTransport | RTCSrtpSdesTransport; @@ -9193,7 +9193,7 @@ interface RTCRtpSender extends RTCStatsProvider { setTransport(transport: RTCDtlsTransport | RTCSrtpSdesTransport, rtcpTransport?: RTCDtlsTransport): void; stop(): void; addEventListener(type: K, listener: (this: RTCRtpSender, ev: RTCRtpSenderEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var RTCRtpSender: { @@ -9218,10 +9218,10 @@ interface RTCSrtpSdesTransportEventMap { } interface RTCSrtpSdesTransport extends EventTarget { - onerror: ((this: RTCSrtpSdesTransport, ev: Event) => any) | null; + onerror: ((this: RTCSrtpSdesTransport, ev: Event) => any) | null; readonly transport: RTCIceTransport; addEventListener(type: K, listener: (this: RTCSrtpSdesTransport, ev: RTCSrtpSdesTransportEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var RTCSrtpSdesTransport: { @@ -9356,7 +9356,7 @@ declare var Response: { interface SVGAElement extends SVGGraphicsElement, SVGURIReference { readonly target: SVGAnimatedString; addEventListener(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGAElement: { @@ -9513,7 +9513,7 @@ interface SVGCircleElement extends SVGGraphicsElement { readonly cy: SVGAnimatedLength; readonly r: SVGAnimatedLength; addEventListener(type: K, listener: (this: SVGCircleElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGCircleElement: { @@ -9524,7 +9524,7 @@ declare var SVGCircleElement: { interface SVGClipPathElement extends SVGGraphicsElement, SVGUnitTypes { readonly clipPathUnits: SVGAnimatedEnumeration; addEventListener(type: K, listener: (this: SVGClipPathElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGClipPathElement: { @@ -9547,7 +9547,7 @@ interface SVGComponentTransferFunctionElement extends SVGElement { readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: number; readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: number; addEventListener(type: K, listener: (this: SVGComponentTransferFunctionElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGComponentTransferFunctionElement: { @@ -9563,7 +9563,7 @@ declare var SVGComponentTransferFunctionElement: { interface SVGDefsElement extends SVGGraphicsElement { addEventListener(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGDefsElement: { @@ -9573,7 +9573,7 @@ declare var SVGDefsElement: { interface SVGDescElement extends SVGElement { addEventListener(type: K, listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGDescElement: { @@ -9596,22 +9596,22 @@ interface SVGElementEventMap extends ElementEventMap { interface SVGElement extends Element { className: any; - onclick: (this: SVGElement, ev: MouseEvent) => any; - ondblclick: (this: SVGElement, ev: MouseEvent) => any; - onfocusin: (this: SVGElement, ev: FocusEvent) => any; - onfocusout: (this: SVGElement, ev: FocusEvent) => any; - onload: (this: SVGElement, ev: Event) => any; - onmousedown: (this: SVGElement, ev: MouseEvent) => any; - onmousemove: (this: SVGElement, ev: MouseEvent) => any; - onmouseout: (this: SVGElement, ev: MouseEvent) => any; - onmouseover: (this: SVGElement, ev: MouseEvent) => any; - onmouseup: (this: SVGElement, ev: MouseEvent) => any; + onclick: (this: SVGElement, ev: MouseEvent) => any; + ondblclick: (this: SVGElement, ev: MouseEvent) => any; + onfocusin: (this: SVGElement, ev: FocusEvent) => any; + onfocusout: (this: SVGElement, ev: FocusEvent) => any; + onload: (this: SVGElement, ev: Event) => any; + onmousedown: (this: SVGElement, ev: MouseEvent) => any; + onmousemove: (this: SVGElement, ev: MouseEvent) => any; + onmouseout: (this: SVGElement, ev: MouseEvent) => any; + onmouseover: (this: SVGElement, ev: MouseEvent) => any; + onmouseup: (this: SVGElement, ev: MouseEvent) => any; readonly ownerSVGElement: SVGSVGElement; readonly style: CSSStyleDeclaration; readonly viewportElement: SVGElement; xmlbase: string; addEventListener(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGElement: { @@ -9651,7 +9651,7 @@ interface SVGEllipseElement extends SVGGraphicsElement { readonly rx: SVGAnimatedLength; readonly ry: SVGAnimatedLength; addEventListener(type: K, listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGEllipseElement: { @@ -9681,7 +9681,7 @@ interface SVGFEBlendElement extends SVGElement, SVGFilterPrimitiveStandardAttrib readonly SVG_FEBLEND_MODE_SOFT_LIGHT: number; readonly SVG_FEBLEND_MODE_UNKNOWN: number; addEventListener(type: K, listener: (this: SVGFEBlendElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFEBlendElement: { @@ -9716,7 +9716,7 @@ interface SVGFEColorMatrixElement extends SVGElement, SVGFilterPrimitiveStandard readonly SVG_FECOLORMATRIX_TYPE_SATURATE: number; readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: number; addEventListener(type: K, listener: (this: SVGFEColorMatrixElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFEColorMatrixElement: { @@ -9732,7 +9732,7 @@ declare var SVGFEColorMatrixElement: { interface SVGFEComponentTransferElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { readonly in1: SVGAnimatedString; addEventListener(type: K, listener: (this: SVGFEComponentTransferElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFEComponentTransferElement: { @@ -9756,7 +9756,7 @@ interface SVGFECompositeElement extends SVGElement, SVGFilterPrimitiveStandardAt readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: number; readonly SVG_FECOMPOSITE_OPERATOR_XOR: number; addEventListener(type: K, listener: (this: SVGFECompositeElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFECompositeElement: { @@ -9789,7 +9789,7 @@ interface SVGFEConvolveMatrixElement extends SVGElement, SVGFilterPrimitiveStand readonly SVG_EDGEMODE_UNKNOWN: number; readonly SVG_EDGEMODE_WRAP: number; addEventListener(type: K, listener: (this: SVGFEConvolveMatrixElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFEConvolveMatrixElement: { @@ -9808,7 +9808,7 @@ interface SVGFEDiffuseLightingElement extends SVGElement, SVGFilterPrimitiveStan readonly kernelUnitLengthY: SVGAnimatedNumber; readonly surfaceScale: SVGAnimatedNumber; addEventListener(type: K, listener: (this: SVGFEDiffuseLightingElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFEDiffuseLightingElement: { @@ -9828,7 +9828,7 @@ interface SVGFEDisplacementMapElement extends SVGElement, SVGFilterPrimitiveStan readonly SVG_CHANNEL_R: number; readonly SVG_CHANNEL_UNKNOWN: number; addEventListener(type: K, listener: (this: SVGFEDisplacementMapElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFEDisplacementMapElement: { @@ -9845,7 +9845,7 @@ interface SVGFEDistantLightElement extends SVGElement { readonly azimuth: SVGAnimatedNumber; readonly elevation: SVGAnimatedNumber; addEventListener(type: K, listener: (this: SVGFEDistantLightElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFEDistantLightElement: { @@ -9855,7 +9855,7 @@ declare var SVGFEDistantLightElement: { interface SVGFEFloodElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { addEventListener(type: K, listener: (this: SVGFEFloodElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFEFloodElement: { @@ -9865,7 +9865,7 @@ declare var SVGFEFloodElement: { interface SVGFEFuncAElement extends SVGComponentTransferFunctionElement { addEventListener(type: K, listener: (this: SVGFEFuncAElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFEFuncAElement: { @@ -9875,7 +9875,7 @@ declare var SVGFEFuncAElement: { interface SVGFEFuncBElement extends SVGComponentTransferFunctionElement { addEventListener(type: K, listener: (this: SVGFEFuncBElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFEFuncBElement: { @@ -9885,7 +9885,7 @@ declare var SVGFEFuncBElement: { interface SVGFEFuncGElement extends SVGComponentTransferFunctionElement { addEventListener(type: K, listener: (this: SVGFEFuncGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFEFuncGElement: { @@ -9895,7 +9895,7 @@ declare var SVGFEFuncGElement: { interface SVGFEFuncRElement extends SVGComponentTransferFunctionElement { addEventListener(type: K, listener: (this: SVGFEFuncRElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFEFuncRElement: { @@ -9909,7 +9909,7 @@ interface SVGFEGaussianBlurElement extends SVGElement, SVGFilterPrimitiveStandar readonly stdDeviationY: SVGAnimatedNumber; setStdDeviation(stdDeviationX: number, stdDeviationY: number): void; addEventListener(type: K, listener: (this: SVGFEGaussianBlurElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFEGaussianBlurElement: { @@ -9920,7 +9920,7 @@ declare var SVGFEGaussianBlurElement: { interface SVGFEImageElement extends SVGElement, SVGFilterPrimitiveStandardAttributes, SVGURIReference { readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio; addEventListener(type: K, listener: (this: SVGFEImageElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFEImageElement: { @@ -9930,7 +9930,7 @@ declare var SVGFEImageElement: { interface SVGFEMergeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { addEventListener(type: K, listener: (this: SVGFEMergeElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFEMergeElement: { @@ -9941,7 +9941,7 @@ declare var SVGFEMergeElement: { interface SVGFEMergeNodeElement extends SVGElement { readonly in1: SVGAnimatedString; addEventListener(type: K, listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFEMergeNodeElement: { @@ -9958,7 +9958,7 @@ interface SVGFEMorphologyElement extends SVGElement, SVGFilterPrimitiveStandardA readonly SVG_MORPHOLOGY_OPERATOR_ERODE: number; readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: number; addEventListener(type: K, listener: (this: SVGFEMorphologyElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFEMorphologyElement: { @@ -9974,7 +9974,7 @@ interface SVGFEOffsetElement extends SVGElement, SVGFilterPrimitiveStandardAttri readonly dy: SVGAnimatedNumber; readonly in1: SVGAnimatedString; addEventListener(type: K, listener: (this: SVGFEOffsetElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFEOffsetElement: { @@ -9987,7 +9987,7 @@ interface SVGFEPointLightElement extends SVGElement { readonly y: SVGAnimatedNumber; readonly z: SVGAnimatedNumber; addEventListener(type: K, listener: (this: SVGFEPointLightElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFEPointLightElement: { @@ -10003,7 +10003,7 @@ interface SVGFESpecularLightingElement extends SVGElement, SVGFilterPrimitiveSta readonly specularExponent: SVGAnimatedNumber; readonly surfaceScale: SVGAnimatedNumber; addEventListener(type: K, listener: (this: SVGFESpecularLightingElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFESpecularLightingElement: { @@ -10021,7 +10021,7 @@ interface SVGFESpotLightElement extends SVGElement { readonly y: SVGAnimatedNumber; readonly z: SVGAnimatedNumber; addEventListener(type: K, listener: (this: SVGFESpotLightElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFESpotLightElement: { @@ -10032,7 +10032,7 @@ declare var SVGFESpotLightElement: { interface SVGFETileElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { readonly in1: SVGAnimatedString; addEventListener(type: K, listener: (this: SVGFETileElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFETileElement: { @@ -10054,7 +10054,7 @@ interface SVGFETurbulenceElement extends SVGElement, SVGFilterPrimitiveStandardA readonly SVG_TURBULENCE_TYPE_TURBULENCE: number; readonly SVG_TURBULENCE_TYPE_UNKNOWN: number; addEventListener(type: K, listener: (this: SVGFETurbulenceElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFETurbulenceElement: { @@ -10079,7 +10079,7 @@ interface SVGFilterElement extends SVGElement, SVGUnitTypes, SVGURIReference { readonly y: SVGAnimatedLength; setFilterRes(filterResX: number, filterResY: number): void; addEventListener(type: K, listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGFilterElement: { @@ -10093,7 +10093,7 @@ interface SVGForeignObjectElement extends SVGGraphicsElement { readonly x: SVGAnimatedLength; readonly y: SVGAnimatedLength; addEventListener(type: K, listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGForeignObjectElement: { @@ -10103,7 +10103,7 @@ declare var SVGForeignObjectElement: { interface SVGGElement extends SVGGraphicsElement { addEventListener(type: K, listener: (this: SVGGElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGGElement: { @@ -10120,7 +10120,7 @@ interface SVGGradientElement extends SVGElement, SVGUnitTypes, SVGURIReference { readonly SVG_SPREADMETHOD_REPEAT: number; readonly SVG_SPREADMETHOD_UNKNOWN: number; addEventListener(type: K, listener: (this: SVGGradientElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGGradientElement: { @@ -10141,7 +10141,7 @@ interface SVGGraphicsElement extends SVGElement, SVGTests { getScreenCTM(): SVGMatrix; getTransformToElement(element: SVGElement): SVGMatrix; addEventListener(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGGraphicsElement: { @@ -10156,7 +10156,7 @@ interface SVGImageElement extends SVGGraphicsElement, SVGURIReference { readonly x: SVGAnimatedLength; readonly y: SVGAnimatedLength; addEventListener(type: K, listener: (this: SVGImageElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGImageElement: { @@ -10222,7 +10222,7 @@ interface SVGLineElement extends SVGGraphicsElement { readonly y1: SVGAnimatedLength; readonly y2: SVGAnimatedLength; addEventListener(type: K, listener: (this: SVGLineElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGLineElement: { @@ -10236,7 +10236,7 @@ interface SVGLinearGradientElement extends SVGGradientElement { readonly y1: SVGAnimatedLength; readonly y2: SVGAnimatedLength; addEventListener(type: K, listener: (this: SVGLinearGradientElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGLinearGradientElement: { @@ -10261,7 +10261,7 @@ interface SVGMarkerElement extends SVGElement, SVGFitToViewBox { readonly SVG_MARKER_ORIENT_AUTO: number; readonly SVG_MARKER_ORIENT_UNKNOWN: number; addEventListener(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGMarkerElement: { @@ -10283,7 +10283,7 @@ interface SVGMaskElement extends SVGElement, SVGTests, SVGUnitTypes { readonly x: SVGAnimatedLength; readonly y: SVGAnimatedLength; addEventListener(type: K, listener: (this: SVGMaskElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGMaskElement: { @@ -10318,7 +10318,7 @@ declare var SVGMatrix: { interface SVGMetadataElement extends SVGElement { addEventListener(type: K, listener: (this: SVGMetadataElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGMetadataElement: { @@ -10376,7 +10376,7 @@ interface SVGPathElement extends SVGGraphicsElement { getPointAtLength(distance: number): SVGPoint; getTotalLength(): number; addEventListener(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGPathElement: { @@ -10669,7 +10669,7 @@ interface SVGPatternElement extends SVGElement, SVGTests, SVGUnitTypes, SVGFitTo readonly x: SVGAnimatedLength; readonly y: SVGAnimatedLength; addEventListener(type: K, listener: (this: SVGPatternElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGPatternElement: { @@ -10706,7 +10706,7 @@ declare var SVGPointList: { interface SVGPolygonElement extends SVGGraphicsElement, SVGAnimatedPoints { addEventListener(type: K, listener: (this: SVGPolygonElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGPolygonElement: { @@ -10716,7 +10716,7 @@ declare var SVGPolygonElement: { interface SVGPolylineElement extends SVGGraphicsElement, SVGAnimatedPoints { addEventListener(type: K, listener: (this: SVGPolylineElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGPolylineElement: { @@ -10769,7 +10769,7 @@ interface SVGRadialGradientElement extends SVGGradientElement { readonly fy: SVGAnimatedLength; readonly r: SVGAnimatedLength; addEventListener(type: K, listener: (this: SVGRadialGradientElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGRadialGradientElement: { @@ -10797,7 +10797,7 @@ interface SVGRectElement extends SVGGraphicsElement { readonly x: SVGAnimatedLength; readonly y: SVGAnimatedLength; addEventListener(type: K, listener: (this: SVGRectElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGRectElement: { @@ -10820,12 +10820,12 @@ interface SVGSVGElement extends SVGGraphicsElement, DocumentEvent, SVGFitToViewB currentScale: number; readonly currentTranslate: SVGPoint; readonly height: SVGAnimatedLength; - onabort: (this: SVGSVGElement, ev: Event) => any; - onerror: (this: SVGSVGElement, ev: Event) => any; - onresize: (this: SVGSVGElement, ev: UIEvent) => any; - onscroll: (this: SVGSVGElement, ev: UIEvent) => any; - onunload: (this: SVGSVGElement, ev: Event) => any; - onzoom: (this: SVGSVGElement, ev: SVGZoomEvent) => any; + onabort: (this: SVGSVGElement, ev: Event) => any; + onerror: (this: SVGSVGElement, ev: Event) => any; + onresize: (this: SVGSVGElement, ev: UIEvent) => any; + onscroll: (this: SVGSVGElement, ev: UIEvent) => any; + onunload: (this: SVGSVGElement, ev: Event) => any; + onzoom: (this: SVGSVGElement, ev: SVGZoomEvent) => any; readonly pixelUnitToMillimeterX: number; readonly pixelUnitToMillimeterY: number; readonly screenPixelToMillimeterX: number; @@ -10858,7 +10858,7 @@ interface SVGSVGElement extends SVGGraphicsElement, DocumentEvent, SVGFitToViewB unsuspendRedraw(suspendHandleID: number): void; unsuspendRedrawAll(): void; addEventListener(type: K, listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGSVGElement: { @@ -10869,7 +10869,7 @@ declare var SVGSVGElement: { interface SVGScriptElement extends SVGElement, SVGURIReference { type: string; addEventListener(type: K, listener: (this: SVGScriptElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGScriptElement: { @@ -10880,7 +10880,7 @@ declare var SVGScriptElement: { interface SVGStopElement extends SVGElement { readonly offset: SVGAnimatedNumber; addEventListener(type: K, listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGStopElement: { @@ -10910,7 +10910,7 @@ interface SVGStyleElement extends SVGElement { title: string; type: string; addEventListener(type: K, listener: (this: SVGStyleElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGStyleElement: { @@ -10920,7 +10920,7 @@ declare var SVGStyleElement: { interface SVGSwitchElement extends SVGGraphicsElement { addEventListener(type: K, listener: (this: SVGSwitchElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGSwitchElement: { @@ -10930,7 +10930,7 @@ declare var SVGSwitchElement: { interface SVGSymbolElement extends SVGElement, SVGFitToViewBox { addEventListener(type: K, listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGSymbolElement: { @@ -10940,7 +10940,7 @@ declare var SVGSymbolElement: { interface SVGTSpanElement extends SVGTextPositioningElement { addEventListener(type: K, listener: (this: SVGTSpanElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGTSpanElement: { @@ -10964,7 +10964,7 @@ interface SVGTextContentElement extends SVGGraphicsElement { readonly LENGTHADJUST_SPACINGANDGLYPHS: number; readonly LENGTHADJUST_UNKNOWN: number; addEventListener(type: K, listener: (this: SVGTextContentElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGTextContentElement: { @@ -10977,7 +10977,7 @@ declare var SVGTextContentElement: { interface SVGTextElement extends SVGTextPositioningElement { addEventListener(type: K, listener: (this: SVGTextElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGTextElement: { @@ -10996,7 +10996,7 @@ interface SVGTextPathElement extends SVGTextContentElement, SVGURIReference { readonly TEXTPATH_SPACINGTYPE_EXACT: number; readonly TEXTPATH_SPACINGTYPE_UNKNOWN: number; addEventListener(type: K, listener: (this: SVGTextPathElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGTextPathElement: { @@ -11017,7 +11017,7 @@ interface SVGTextPositioningElement extends SVGTextContentElement { readonly x: SVGAnimatedLengthList; readonly y: SVGAnimatedLengthList; addEventListener(type: K, listener: (this: SVGTextPositioningElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGTextPositioningElement: { @@ -11027,7 +11027,7 @@ declare var SVGTextPositioningElement: { interface SVGTitleElement extends SVGElement { addEventListener(type: K, listener: (this: SVGTitleElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGTitleElement: { @@ -11099,7 +11099,7 @@ interface SVGUseElement extends SVGGraphicsElement, SVGURIReference { readonly x: SVGAnimatedLength; readonly y: SVGAnimatedLength; addEventListener(type: K, listener: (this: SVGUseElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGUseElement: { @@ -11110,7 +11110,7 @@ declare var SVGUseElement: { interface SVGViewElement extends SVGElement, SVGZoomAndPan, SVGFitToViewBox { readonly viewTarget: SVGStringList; addEventListener(type: K, listener: (this: SVGViewElement, ev: SVGElementEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SVGViewElement: { @@ -11177,7 +11177,7 @@ interface Screen extends EventTarget { readonly logicalXDPI: number; readonly logicalYDPI: number; readonly msOrientation: string; - onmsorientationchange: (this: Screen, ev: Event) => any; + onmsorientationchange: (this: Screen, ev: Event) => any; readonly pixelDepth: number; readonly systemXDPI: number; readonly systemYDPI: number; @@ -11185,7 +11185,7 @@ interface Screen extends EventTarget { msLockOrientation(orientations: string | string[]): boolean; msUnlockOrientation(): void; addEventListener(type: K, listener: (this: Screen, ev: ScreenEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var Screen: { @@ -11209,9 +11209,9 @@ interface ScriptProcessorNodeEventMap { interface ScriptProcessorNode extends AudioNode { readonly bufferSize: number; - onaudioprocess: (this: ScriptProcessorNode, ev: AudioProcessingEvent) => any; + onaudioprocess: (this: ScriptProcessorNode, ev: AudioProcessingEvent) => any; addEventListener(type: K, listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var ScriptProcessorNode: { @@ -11258,12 +11258,12 @@ interface ServiceWorkerEventMap extends AbstractWorkerEventMap { } interface ServiceWorker extends EventTarget, AbstractWorker { - onstatechange: (this: ServiceWorker, ev: Event) => any; + onstatechange: (this: ServiceWorker, ev: Event) => any; readonly scriptURL: USVString; readonly state: string; postMessage(message: any, transfer?: any[]): void; addEventListener(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var ServiceWorker: { @@ -11278,14 +11278,14 @@ interface ServiceWorkerContainerEventMap { interface ServiceWorkerContainer extends EventTarget { readonly controller: ServiceWorker | null; - oncontrollerchange: (this: ServiceWorkerContainer, ev: Event) => any; - onmessage: (this: ServiceWorkerContainer, ev: ServiceWorkerMessageEvent) => any; + oncontrollerchange: (this: ServiceWorkerContainer, ev: Event) => any; + onmessage: (this: ServiceWorkerContainer, ev: ServiceWorkerMessageEvent) => any; readonly ready: Promise; getRegistration(clientURL?: USVString): Promise; getRegistrations(): any; register(scriptURL: USVString, options?: RegistrationOptions): Promise; addEventListener(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var ServiceWorkerContainer: { @@ -11313,7 +11313,7 @@ interface ServiceWorkerRegistrationEventMap { interface ServiceWorkerRegistration extends EventTarget { readonly active: ServiceWorker | null; readonly installing: ServiceWorker | null; - onupdatefound: (this: ServiceWorkerRegistration, ev: Event) => any; + onupdatefound: (this: ServiceWorkerRegistration, ev: Event) => any; readonly pushManager: PushManager; readonly scope: USVString; readonly sync: SyncManager; @@ -11323,7 +11323,7 @@ interface ServiceWorkerRegistration extends EventTarget { unregister(): Promise; update(): Promise; addEventListener(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var ServiceWorkerRegistration: { @@ -11367,7 +11367,7 @@ interface SpeechSynthesisEventMap { } interface SpeechSynthesis extends EventTarget { - onvoiceschanged: (this: SpeechSynthesis, ev: Event) => any; + onvoiceschanged: (this: SpeechSynthesis, ev: Event) => any; readonly paused: boolean; readonly pending: boolean; readonly speaking: boolean; @@ -11377,7 +11377,7 @@ interface SpeechSynthesis extends EventTarget { resume(): void; speak(utterance: SpeechSynthesisUtterance): void; addEventListener(type: K, listener: (this: SpeechSynthesis, ev: SpeechSynthesisEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SpeechSynthesis: { @@ -11409,20 +11409,20 @@ interface SpeechSynthesisUtteranceEventMap { interface SpeechSynthesisUtterance extends EventTarget { lang: string; - onboundary: (this: SpeechSynthesisUtterance, ev: Event) => any; - onend: (this: SpeechSynthesisUtterance, ev: Event) => any; - onerror: (this: SpeechSynthesisUtterance, ev: Event) => any; - onmark: (this: SpeechSynthesisUtterance, ev: Event) => any; - onpause: (this: SpeechSynthesisUtterance, ev: Event) => any; - onresume: (this: SpeechSynthesisUtterance, ev: Event) => any; - onstart: (this: SpeechSynthesisUtterance, ev: Event) => any; + onboundary: (this: SpeechSynthesisUtterance, ev: Event) => any; + onend: (this: SpeechSynthesisUtterance, ev: Event) => any; + onerror: (this: SpeechSynthesisUtterance, ev: Event) => any; + onmark: (this: SpeechSynthesisUtterance, ev: Event) => any; + onpause: (this: SpeechSynthesisUtterance, ev: Event) => any; + onresume: (this: SpeechSynthesisUtterance, ev: Event) => any; + onstart: (this: SpeechSynthesisUtterance, ev: Event) => any; pitch: number; rate: number; text: string; voice: SpeechSynthesisVoice; volume: number; addEventListener(type: K, listener: (this: SpeechSynthesisUtterance, ev: SpeechSynthesisUtteranceEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var SpeechSynthesisUtterance: { @@ -11630,9 +11630,9 @@ interface TextTrack extends EventTarget { readonly label: string; readonly language: string; mode: any; - oncuechange: (this: TextTrack, ev: Event) => any; - onerror: (this: TextTrack, ev: Event) => any; - onload: (this: TextTrack, ev: Event) => any; + oncuechange: (this: TextTrack, ev: Event) => any; + onerror: (this: TextTrack, ev: Event) => any; + onload: (this: TextTrack, ev: Event) => any; readonly readyState: number; addCue(cue: TextTrackCue): void; removeCue(cue: TextTrackCue): void; @@ -11644,7 +11644,7 @@ interface TextTrack extends EventTarget { readonly NONE: number; readonly SHOWING: number; addEventListener(type: K, listener: (this: TextTrack, ev: TextTrackEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var TextTrack: { @@ -11667,15 +11667,15 @@ interface TextTrackCueEventMap { interface TextTrackCue extends EventTarget { endTime: number; id: string; - onenter: (this: TextTrackCue, ev: Event) => any; - onexit: (this: TextTrackCue, ev: Event) => any; + onenter: (this: TextTrackCue, ev: Event) => any; + onexit: (this: TextTrackCue, ev: Event) => any; pauseOnExit: boolean; startTime: number; text: string; readonly track: TextTrack; getCueAsHTML(): DocumentFragment; addEventListener(type: K, listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var TextTrackCue: { @@ -11701,10 +11701,10 @@ interface TextTrackListEventMap { interface TextTrackList extends EventTarget { readonly length: number; - onaddtrack: ((this: TextTrackList, ev: TrackEvent) => any) | null; + onaddtrack: ((this: TextTrackList, ev: TrackEvent) => any) | null; item(index: number): TextTrack; addEventListener(type: K, listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; [index: number]: TextTrack; } @@ -11905,14 +11905,14 @@ interface VideoTrackListEventMap { interface VideoTrackList extends EventTarget { readonly length: number; - onaddtrack: (this: VideoTrackList, ev: TrackEvent) => any; - onchange: (this: VideoTrackList, ev: Event) => any; - onremovetrack: (this: VideoTrackList, ev: TrackEvent) => any; + onaddtrack: (this: VideoTrackList, ev: TrackEvent) => any; + onchange: (this: VideoTrackList, ev: Event) => any; + onremovetrack: (this: VideoTrackList, ev: TrackEvent) => any; readonly selectedIndex: number; getTrackById(id: string): VideoTrack | null; item(index: number): VideoTrack; addEventListener(type: K, listener: (this: VideoTrackList, ev: VideoTrackListEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; [index: number]: VideoTrack; } @@ -12940,10 +12940,10 @@ interface WebSocket extends EventTarget { binaryType: string; readonly bufferedAmount: number; readonly extensions: string; - onclose: (this: WebSocket, ev: CloseEvent) => any; - onerror: (this: WebSocket, ev: Event) => any; - onmessage: (this: WebSocket, ev: MessageEvent) => any; - onopen: (this: WebSocket, ev: Event) => any; + onclose: (this: WebSocket, ev: CloseEvent) => any; + onerror: (this: WebSocket, ev: Event) => any; + onmessage: (this: WebSocket, ev: MessageEvent) => any; + onopen: (this: WebSocket, ev: Event) => any; readonly protocol: string; readonly readyState: number; readonly url: string; @@ -12954,7 +12954,7 @@ interface WebSocket extends EventTarget { readonly CONNECTING: number; readonly OPEN: number; addEventListener(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var WebSocket: { @@ -13105,97 +13105,97 @@ interface Window extends EventTarget, WindowTimers, WindowSessionStorage, Window name: string; readonly navigator: Navigator; offscreenBuffering: string | boolean; - onabort: (this: Window, ev: UIEvent) => any; - onafterprint: (this: Window, ev: Event) => any; - onbeforeprint: (this: Window, ev: Event) => any; - onbeforeunload: (this: Window, ev: BeforeUnloadEvent) => any; - onblur: (this: Window, ev: FocusEvent) => any; - oncanplay: (this: Window, ev: Event) => any; - oncanplaythrough: (this: Window, ev: Event) => any; - onchange: (this: Window, ev: Event) => any; - onclick: (this: Window, ev: MouseEvent) => any; - oncompassneedscalibration: (this: Window, ev: Event) => any; - oncontextmenu: (this: Window, ev: PointerEvent) => any; - ondblclick: (this: Window, ev: MouseEvent) => any; - ondevicelight: (this: Window, ev: DeviceLightEvent) => any; - ondevicemotion: (this: Window, ev: DeviceMotionEvent) => any; - ondeviceorientation: (this: Window, ev: DeviceOrientationEvent) => any; - ondrag: (this: Window, ev: DragEvent) => any; - ondragend: (this: Window, ev: DragEvent) => any; - ondragenter: (this: Window, ev: DragEvent) => any; - ondragleave: (this: Window, ev: DragEvent) => any; - ondragover: (this: Window, ev: DragEvent) => any; - ondragstart: (this: Window, ev: DragEvent) => any; - ondrop: (this: Window, ev: DragEvent) => any; - ondurationchange: (this: Window, ev: Event) => any; - onemptied: (this: Window, ev: Event) => any; - onended: (this: Window, ev: MediaStreamErrorEvent) => any; + onabort: (this: Window, ev: UIEvent) => any; + onafterprint: (this: Window, ev: Event) => any; + onbeforeprint: (this: Window, ev: Event) => any; + onbeforeunload: (this: Window, ev: BeforeUnloadEvent) => any; + onblur: (this: Window, ev: FocusEvent) => any; + oncanplay: (this: Window, ev: Event) => any; + oncanplaythrough: (this: Window, ev: Event) => any; + onchange: (this: Window, ev: Event) => any; + onclick: (this: Window, ev: MouseEvent) => any; + oncompassneedscalibration: (this: Window, ev: Event) => any; + oncontextmenu: (this: Window, ev: PointerEvent) => any; + ondblclick: (this: Window, ev: MouseEvent) => any; + ondevicelight: (this: Window, ev: DeviceLightEvent) => any; + ondevicemotion: (this: Window, ev: DeviceMotionEvent) => any; + ondeviceorientation: (this: Window, ev: DeviceOrientationEvent) => any; + ondrag: (this: Window, ev: DragEvent) => any; + ondragend: (this: Window, ev: DragEvent) => any; + ondragenter: (this: Window, ev: DragEvent) => any; + ondragleave: (this: Window, ev: DragEvent) => any; + ondragover: (this: Window, ev: DragEvent) => any; + ondragstart: (this: Window, ev: DragEvent) => any; + ondrop: (this: Window, ev: DragEvent) => any; + ondurationchange: (this: Window, ev: Event) => any; + onemptied: (this: Window, ev: Event) => any; + onended: (this: Window, ev: MediaStreamErrorEvent) => any; onerror: ErrorEventHandler; - onfocus: (this: Window, ev: FocusEvent) => any; - onhashchange: (this: Window, ev: HashChangeEvent) => any; - oninput: (this: Window, ev: Event) => any; - oninvalid: (this: Window, ev: Event) => any; - onkeydown: (this: Window, ev: KeyboardEvent) => any; - onkeypress: (this: Window, ev: KeyboardEvent) => any; - onkeyup: (this: Window, ev: KeyboardEvent) => any; - onload: (this: Window, ev: Event) => any; - onloadeddata: (this: Window, ev: Event) => any; - onloadedmetadata: (this: Window, ev: Event) => any; - onloadstart: (this: Window, ev: Event) => any; - onmessage: (this: Window, ev: MessageEvent) => any; - onmousedown: (this: Window, ev: MouseEvent) => any; - onmouseenter: (this: Window, ev: MouseEvent) => any; - onmouseleave: (this: Window, ev: MouseEvent) => any; - onmousemove: (this: Window, ev: MouseEvent) => any; - onmouseout: (this: Window, ev: MouseEvent) => any; - onmouseover: (this: Window, ev: MouseEvent) => any; - onmouseup: (this: Window, ev: MouseEvent) => any; - onmousewheel: (this: Window, ev: WheelEvent) => any; - onmsgesturechange: (this: Window, ev: MSGestureEvent) => any; - onmsgesturedoubletap: (this: Window, ev: MSGestureEvent) => any; - onmsgestureend: (this: Window, ev: MSGestureEvent) => any; - onmsgesturehold: (this: Window, ev: MSGestureEvent) => any; - onmsgesturestart: (this: Window, ev: MSGestureEvent) => any; - onmsgesturetap: (this: Window, ev: MSGestureEvent) => any; - onmsinertiastart: (this: Window, ev: MSGestureEvent) => any; - onmspointercancel: (this: Window, ev: MSPointerEvent) => any; - onmspointerdown: (this: Window, ev: MSPointerEvent) => any; - onmspointerenter: (this: Window, ev: MSPointerEvent) => any; - onmspointerleave: (this: Window, ev: MSPointerEvent) => any; - onmspointermove: (this: Window, ev: MSPointerEvent) => any; - onmspointerout: (this: Window, ev: MSPointerEvent) => any; - onmspointerover: (this: Window, ev: MSPointerEvent) => any; - onmspointerup: (this: Window, ev: MSPointerEvent) => any; - onoffline: (this: Window, ev: Event) => any; - ononline: (this: Window, ev: Event) => any; - onorientationchange: (this: Window, ev: Event) => any; - onpagehide: (this: Window, ev: PageTransitionEvent) => any; - onpageshow: (this: Window, ev: PageTransitionEvent) => any; - onpause: (this: Window, ev: Event) => any; - onplay: (this: Window, ev: Event) => any; - onplaying: (this: Window, ev: Event) => any; - onpopstate: (this: Window, ev: PopStateEvent) => any; - onprogress: (this: Window, ev: ProgressEvent) => any; - onratechange: (this: Window, ev: Event) => any; - onreadystatechange: (this: Window, ev: ProgressEvent) => any; - onreset: (this: Window, ev: Event) => any; - onresize: (this: Window, ev: UIEvent) => any; - onscroll: (this: Window, ev: UIEvent) => any; - onseeked: (this: Window, ev: Event) => any; - onseeking: (this: Window, ev: Event) => any; - onselect: (this: Window, ev: UIEvent) => any; - onstalled: (this: Window, ev: Event) => any; - onstorage: (this: Window, ev: StorageEvent) => any; - onsubmit: (this: Window, ev: Event) => any; - onsuspend: (this: Window, ev: Event) => any; - ontimeupdate: (this: Window, ev: Event) => any; + onfocus: (this: Window, ev: FocusEvent) => any; + onhashchange: (this: Window, ev: HashChangeEvent) => any; + oninput: (this: Window, ev: Event) => any; + oninvalid: (this: Window, ev: Event) => any; + onkeydown: (this: Window, ev: KeyboardEvent) => any; + onkeypress: (this: Window, ev: KeyboardEvent) => any; + onkeyup: (this: Window, ev: KeyboardEvent) => any; + onload: (this: Window, ev: Event) => any; + onloadeddata: (this: Window, ev: Event) => any; + onloadedmetadata: (this: Window, ev: Event) => any; + onloadstart: (this: Window, ev: Event) => any; + onmessage: (this: Window, ev: MessageEvent) => any; + onmousedown: (this: Window, ev: MouseEvent) => any; + onmouseenter: (this: Window, ev: MouseEvent) => any; + onmouseleave: (this: Window, ev: MouseEvent) => any; + onmousemove: (this: Window, ev: MouseEvent) => any; + onmouseout: (this: Window, ev: MouseEvent) => any; + onmouseover: (this: Window, ev: MouseEvent) => any; + onmouseup: (this: Window, ev: MouseEvent) => any; + onmousewheel: (this: Window, ev: WheelEvent) => any; + onmsgesturechange: (this: Window, ev: MSGestureEvent) => any; + onmsgesturedoubletap: (this: Window, ev: MSGestureEvent) => any; + onmsgestureend: (this: Window, ev: MSGestureEvent) => any; + onmsgesturehold: (this: Window, ev: MSGestureEvent) => any; + onmsgesturestart: (this: Window, ev: MSGestureEvent) => any; + onmsgesturetap: (this: Window, ev: MSGestureEvent) => any; + onmsinertiastart: (this: Window, ev: MSGestureEvent) => any; + onmspointercancel: (this: Window, ev: MSPointerEvent) => any; + onmspointerdown: (this: Window, ev: MSPointerEvent) => any; + onmspointerenter: (this: Window, ev: MSPointerEvent) => any; + onmspointerleave: (this: Window, ev: MSPointerEvent) => any; + onmspointermove: (this: Window, ev: MSPointerEvent) => any; + onmspointerout: (this: Window, ev: MSPointerEvent) => any; + onmspointerover: (this: Window, ev: MSPointerEvent) => any; + onmspointerup: (this: Window, ev: MSPointerEvent) => any; + onoffline: (this: Window, ev: Event) => any; + ononline: (this: Window, ev: Event) => any; + onorientationchange: (this: Window, ev: Event) => any; + onpagehide: (this: Window, ev: PageTransitionEvent) => any; + onpageshow: (this: Window, ev: PageTransitionEvent) => any; + onpause: (this: Window, ev: Event) => any; + onplay: (this: Window, ev: Event) => any; + onplaying: (this: Window, ev: Event) => any; + onpopstate: (this: Window, ev: PopStateEvent) => any; + onprogress: (this: Window, ev: ProgressEvent) => any; + onratechange: (this: Window, ev: Event) => any; + onreadystatechange: (this: Window, ev: ProgressEvent) => any; + onreset: (this: Window, ev: Event) => any; + onresize: (this: Window, ev: UIEvent) => any; + onscroll: (this: Window, ev: UIEvent) => any; + onseeked: (this: Window, ev: Event) => any; + onseeking: (this: Window, ev: Event) => any; + onselect: (this: Window, ev: UIEvent) => any; + onstalled: (this: Window, ev: Event) => any; + onstorage: (this: Window, ev: StorageEvent) => any; + onsubmit: (this: Window, ev: Event) => any; + onsuspend: (this: Window, ev: Event) => any; + ontimeupdate: (this: Window, ev: Event) => any; ontouchcancel: (ev: TouchEvent) => any; ontouchend: (ev: TouchEvent) => any; ontouchmove: (ev: TouchEvent) => any; ontouchstart: (ev: TouchEvent) => any; - onunload: (this: Window, ev: Event) => any; - onvolumechange: (this: Window, ev: Event) => any; - onwaiting: (this: Window, ev: Event) => any; + onunload: (this: Window, ev: Event) => any; + onvolumechange: (this: Window, ev: Event) => any; + onwaiting: (this: Window, ev: Event) => any; opener: any; orientation: string | number; readonly outerHeight: number; @@ -13259,7 +13259,7 @@ interface Window extends EventTarget, WindowTimers, WindowSessionStorage, Window scrollTo(options?: ScrollToOptions): void; scrollBy(options?: ScrollToOptions): void; addEventListener(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var Window: { @@ -13272,11 +13272,11 @@ interface WorkerEventMap extends AbstractWorkerEventMap { } interface Worker extends EventTarget, AbstractWorker { - onmessage: (this: Worker, ev: MessageEvent) => any; + onmessage: (this: Worker, ev: MessageEvent) => any; postMessage(message: any, transfer?: any[]): void; terminate(): void; addEventListener(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var Worker: { @@ -13286,7 +13286,7 @@ declare var Worker: { interface XMLDocument extends Document { addEventListener(type: K, listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var XMLDocument: { @@ -13299,7 +13299,7 @@ interface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap { } interface XMLHttpRequest extends EventTarget, XMLHttpRequestEventTarget { - onreadystatechange: (this: XMLHttpRequest, ev: Event) => any; + onreadystatechange: (this: XMLHttpRequest, ev: Event) => any; readonly readyState: number; readonly response: any; readonly responseText: string; @@ -13328,7 +13328,7 @@ interface XMLHttpRequest extends EventTarget, XMLHttpRequestEventTarget(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var XMLHttpRequest: { @@ -13343,7 +13343,7 @@ declare var XMLHttpRequest: { interface XMLHttpRequestUpload extends EventTarget, XMLHttpRequestEventTarget { addEventListener(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var XMLHttpRequestUpload: { @@ -13444,7 +13444,7 @@ declare var XSLTProcessor: { interface webkitRTCPeerConnection extends RTCPeerConnection { addEventListener(type: K, listener: (this: webkitRTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var webkitRTCPeerConnection: { diff --git a/baselines/webworker.generated.d.ts b/baselines/webworker.generated.d.ts index ad1180b34..233f778d4 100644 --- a/baselines/webworker.generated.d.ts +++ b/baselines/webworker.generated.d.ts @@ -432,7 +432,7 @@ interface FileReader extends EventTarget, MSBaseReader { readAsDataURL(blob: Blob): void; readAsText(blob: Blob, encoding?: string): void; addEventListener(type: K, listener: (this: FileReader, ev: MSBaseReaderEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var FileReader: { @@ -495,8 +495,8 @@ interface IDBDatabaseEventMap { interface IDBDatabase extends EventTarget { readonly name: string; readonly objectStoreNames: DOMStringList; - onabort: (this: IDBDatabase, ev: Event) => any; - onerror: (this: IDBDatabase, ev: Event) => any; + onabort: (this: IDBDatabase, ev: Event) => any; + onerror: (this: IDBDatabase, ev: Event) => any; version: number; onversionchange: (ev: IDBVersionChangeEvent) => any; close(): void; @@ -505,7 +505,7 @@ interface IDBDatabase extends EventTarget { transaction(storeNames: string | string[], mode?: string): IDBTransaction; addEventListener(type: "versionchange", listener: (ev: IDBVersionChangeEvent) => any, useCapture?: boolean): void; addEventListener(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var IDBDatabase: { @@ -587,10 +587,10 @@ interface IDBOpenDBRequestEventMap extends IDBRequestEventMap { } interface IDBOpenDBRequest extends IDBRequest { - onblocked: (this: IDBOpenDBRequest, ev: Event) => any; - onupgradeneeded: (this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any; + onblocked: (this: IDBOpenDBRequest, ev: Event) => any; + onupgradeneeded: (this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any; addEventListener(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var IDBOpenDBRequest: { @@ -605,14 +605,14 @@ interface IDBRequestEventMap { interface IDBRequest extends EventTarget { readonly error: DOMError; - onerror: (this: IDBRequest, ev: Event) => any; - onsuccess: (this: IDBRequest, ev: Event) => any; + onerror: (this: IDBRequest, ev: Event) => any; + onsuccess: (this: IDBRequest, ev: Event) => any; readonly readyState: string; readonly result: any; source: IDBObjectStore | IDBIndex | IDBCursor; readonly transaction: IDBTransaction; addEventListener(type: K, listener: (this: IDBRequest, ev: IDBRequestEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var IDBRequest: { @@ -630,16 +630,16 @@ interface IDBTransaction extends EventTarget { readonly db: IDBDatabase; readonly error: DOMError; readonly mode: string; - onabort: (this: IDBTransaction, ev: Event) => any; - oncomplete: (this: IDBTransaction, ev: Event) => any; - onerror: (this: IDBTransaction, ev: Event) => any; + onabort: (this: IDBTransaction, ev: Event) => any; + oncomplete: (this: IDBTransaction, ev: Event) => any; + onerror: (this: IDBTransaction, ev: Event) => any; abort(): void; objectStore(name: string): IDBObjectStore; readonly READ_ONLY: string; readonly READ_WRITE: string; readonly VERSION_CHANGE: string; addEventListener(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var IDBTransaction: { @@ -700,12 +700,12 @@ interface MessagePortEventMap { } interface MessagePort extends EventTarget { - onmessage: (this: MessagePort, ev: MessageEvent) => any; + onmessage: (this: MessagePort, ev: MessageEvent) => any; close(): void; postMessage(message?: any, transfer?: any[]): void; start(): void; addEventListener(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var MessagePort: { @@ -725,16 +725,16 @@ interface Notification extends EventTarget { readonly dir: string; 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; + 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 tag: string; readonly title: string; close(): void; addEventListener(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var Notification: { @@ -954,12 +954,12 @@ interface ServiceWorkerEventMap extends AbstractWorkerEventMap { } interface ServiceWorker extends EventTarget, AbstractWorker { - onstatechange: (this: ServiceWorker, ev: Event) => any; + onstatechange: (this: ServiceWorker, ev: Event) => any; readonly scriptURL: USVString; readonly state: string; postMessage(message: any, transfer?: any[]): void; addEventListener(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var ServiceWorker: { @@ -974,7 +974,7 @@ interface ServiceWorkerRegistrationEventMap { interface ServiceWorkerRegistration extends EventTarget { readonly active: ServiceWorker | null; readonly installing: ServiceWorker | null; - onupdatefound: (this: ServiceWorkerRegistration, ev: Event) => any; + onupdatefound: (this: ServiceWorkerRegistration, ev: Event) => any; readonly pushManager: PushManager; readonly scope: USVString; readonly sync: SyncManager; @@ -984,7 +984,7 @@ interface ServiceWorkerRegistration extends EventTarget { unregister(): Promise; update(): Promise; addEventListener(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var ServiceWorkerRegistration: { @@ -1054,10 +1054,10 @@ interface WebSocket extends EventTarget { binaryType: string; readonly bufferedAmount: number; readonly extensions: string; - onclose: (this: WebSocket, ev: CloseEvent) => any; - onerror: (this: WebSocket, ev: Event) => any; - onmessage: (this: WebSocket, ev: MessageEvent) => any; - onopen: (this: WebSocket, ev: Event) => any; + onclose: (this: WebSocket, ev: CloseEvent) => any; + onerror: (this: WebSocket, ev: Event) => any; + onmessage: (this: WebSocket, ev: MessageEvent) => any; + onopen: (this: WebSocket, ev: Event) => any; readonly protocol: string; readonly readyState: number; readonly url: string; @@ -1068,7 +1068,7 @@ interface WebSocket extends EventTarget { readonly CONNECTING: number; readonly OPEN: number; addEventListener(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var WebSocket: { @@ -1085,11 +1085,11 @@ interface WorkerEventMap extends AbstractWorkerEventMap { } interface Worker extends EventTarget, AbstractWorker { - onmessage: (this: Worker, ev: MessageEvent) => any; + onmessage: (this: Worker, ev: MessageEvent) => any; postMessage(message: any, transfer?: any[]): void; terminate(): void; addEventListener(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var Worker: { @@ -1102,7 +1102,7 @@ interface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap { } interface XMLHttpRequest extends EventTarget, XMLHttpRequestEventTarget { - onreadystatechange: (this: XMLHttpRequest, ev: Event) => any; + onreadystatechange: (this: XMLHttpRequest, ev: Event) => any; readonly readyState: number; readonly response: any; readonly responseText: string; @@ -1130,7 +1130,7 @@ interface XMLHttpRequest extends EventTarget, XMLHttpRequestEventTarget(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var XMLHttpRequest: { @@ -1145,7 +1145,7 @@ declare var XMLHttpRequest: { interface XMLHttpRequestUpload extends EventTarget, XMLHttpRequestEventTarget { addEventListener(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var XMLHttpRequestUpload: { @@ -1279,11 +1279,11 @@ interface DedicatedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap { } interface DedicatedWorkerGlobalScope extends WorkerGlobalScope { - onmessage: (this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any; + onmessage: (this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any; close(): void; postMessage(message: any, transfer?: any[]): void; addEventListener(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var DedicatedWorkerGlobalScope: { @@ -1382,19 +1382,19 @@ interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap { interface ServiceWorkerGlobalScope extends WorkerGlobalScope { readonly clients: Clients; - onactivate: (this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any; - onfetch: (this: ServiceWorkerGlobalScope, ev: FetchEvent) => any; - oninstall: (this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any; - onmessage: (this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any; - onnotificationclick: (this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any; - onnotificationclose: (this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any; - onpush: (this: ServiceWorkerGlobalScope, ev: PushEvent) => any; - onpushsubscriptionchange: (this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any; - onsync: (this: ServiceWorkerGlobalScope, ev: SyncEvent) => any; + onactivate: (this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any; + onfetch: (this: ServiceWorkerGlobalScope, ev: FetchEvent) => any; + oninstall: (this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any; + onmessage: (this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any; + onnotificationclick: (this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any; + onnotificationclose: (this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any; + onpush: (this: ServiceWorkerGlobalScope, ev: PushEvent) => any; + onpushsubscriptionchange: (this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any; + onsync: (this: ServiceWorkerGlobalScope, ev: SyncEvent) => any; readonly registration: ServiceWorkerRegistration; skipWaiting(): Promise; addEventListener(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var ServiceWorkerGlobalScope: { @@ -1432,12 +1432,12 @@ interface WorkerGlobalScope extends EventTarget, WorkerUtils, WindowConsole, Glo readonly caches: CacheStorage; readonly isSecureContext: boolean; readonly location: WorkerLocation; - onerror: (this: WorkerGlobalScope, ev: ErrorEvent) => any; + onerror: (this: WorkerGlobalScope, ev: ErrorEvent) => any; readonly performance: Performance; readonly self: WorkerGlobalScope; msWriteProfilerMark(profilerMarkName: string): void; addEventListener(type: K, listener: (this: WorkerGlobalScope, ev: WorkerGlobalScopeEventMap[K]) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var WorkerGlobalScope: {