diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index cc5537b24..8ac2e4cb9 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -1879,10 +1879,11 @@ interface AbortController { abort(): void; } -declare var AbortController: { +interface AbortControllerConstructor { prototype: AbortController; new(): AbortController; -}; +} +declare var AbortController: AbortControllerConstructor; interface AbortSignalEventMap { "abort": Event; @@ -1901,10 +1902,11 @@ interface AbortSignal extends EventTarget { removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } -declare var AbortSignal: { +interface AbortSignalConstructor { prototype: AbortSignal; new(): AbortSignal; -}; +} +declare var AbortSignal: AbortSignalConstructor; interface AbstractRange { /** @@ -1929,10 +1931,11 @@ interface AbstractRange { readonly startOffset: number; } -declare var AbstractRange: { +interface AbstractRangeConstructor { prototype: AbstractRange; new(): AbstractRange; -}; +} +declare var AbstractRange: AbstractRangeConstructor; interface AbstractWorkerEventMap { "error": ErrorEvent; @@ -1967,10 +1970,11 @@ interface AnalyserNode extends AudioNode { getFloatTimeDomainData(array: Float32Array): void; } -declare var AnalyserNode: { +interface AnalyserNodeConstructor { prototype: AnalyserNode; new(context: BaseAudioContext, options?: AnalyserOptions): AnalyserNode; -}; +} +declare var AnalyserNode: AnalyserNodeConstructor; interface Animatable { animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation; @@ -2007,10 +2011,11 @@ interface Animation extends EventTarget { removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } -declare var Animation: { +interface AnimationConstructor { prototype: Animation; new(effect?: AnimationEffect | null, timeline?: AnimationTimeline | null): Animation; -}; +} +declare var Animation: AnimationConstructor; interface AnimationEffect { getComputedTiming(): ComputedEffectTiming; @@ -2018,10 +2023,11 @@ interface AnimationEffect { updateTiming(timing?: OptionalEffectTiming): void; } -declare var AnimationEffect: { +interface AnimationEffectConstructor { prototype: AnimationEffect; new(): AnimationEffect; -}; +} +declare var AnimationEffect: AnimationEffectConstructor; /** Events providing information related to animations. */ interface AnimationEvent extends Event { @@ -2030,10 +2036,11 @@ interface AnimationEvent extends Event { readonly pseudoElement: string; } -declare var AnimationEvent: { +interface AnimationEventConstructor { prototype: AnimationEvent; new(type: string, animationEventInitDict?: AnimationEventInit): AnimationEvent; -}; +} +declare var AnimationEvent: AnimationEventConstructor; interface AnimationFrameProvider { cancelAnimationFrame(handle: number): void; @@ -2045,19 +2052,21 @@ interface AnimationPlaybackEvent extends Event { readonly timelineTime: number | null; } -declare var AnimationPlaybackEvent: { +interface AnimationPlaybackEventConstructor { prototype: AnimationPlaybackEvent; new(type: string, eventInitDict?: AnimationPlaybackEventInit): AnimationPlaybackEvent; -}; +} +declare var AnimationPlaybackEvent: AnimationPlaybackEventConstructor; interface AnimationTimeline { readonly currentTime: number | null; } -declare var AnimationTimeline: { +interface AnimationTimelineConstructor { prototype: AnimationTimeline; new(): AnimationTimeline; -}; +} +declare var AnimationTimeline: AnimationTimelineConstructor; interface ApplicationCacheEventMap { "cached": Event; @@ -2107,7 +2116,7 @@ interface ApplicationCache extends EventTarget { removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } -declare var ApplicationCache: { +interface ApplicationCacheConstructor { prototype: ApplicationCache; new(): ApplicationCache; readonly CHECKING: number; @@ -2116,7 +2125,8 @@ declare var ApplicationCache: { readonly OBSOLETE: number; readonly UNCACHED: number; readonly UPDATEREADY: number; -}; +} +declare var ApplicationCache: ApplicationCacheConstructor; /** A DOM element's attribute as an object. In most DOM methods, you will probably directly retrieve the attribute as a string (e.g., Element.getAttribute(), but certain functions (e.g., Element.getAttributeNode()) or means of iterating give Attr types. */ interface Attr extends Node { @@ -2129,10 +2139,11 @@ interface Attr extends Node { value: string; } -declare var Attr: { +interface AttrConstructor { prototype: Attr; new(): Attr; -}; +} +declare var Attr: AttrConstructor; /** A short audio asset residing in memory, created from an audio file using the AudioContext.decodeAudioData() method, or from raw data using AudioContext.createBuffer(). Once put into an AudioBuffer, the audio can then be played by being passed into an AudioBufferSourceNode. */ interface AudioBuffer { @@ -2145,10 +2156,11 @@ interface AudioBuffer { getChannelData(channel: number): Float32Array; } -declare var AudioBuffer: { +interface AudioBufferConstructor { prototype: AudioBuffer; new(options: AudioBufferOptions): AudioBuffer; -}; +} +declare var AudioBuffer: AudioBufferConstructor; /** An AudioScheduledSourceNode which represents an audio source consisting of in-memory audio data, stored in an AudioBuffer. It's especially useful for playing back audio which has particularly stringent timing accuracy requirements, such as for sounds that must match a specific rhythm and can be kept in memory rather than being played from disk or the network. */ interface AudioBufferSourceNode extends AudioScheduledSourceNode { @@ -2165,10 +2177,11 @@ interface AudioBufferSourceNode extends AudioScheduledSourceNode { removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } -declare var AudioBufferSourceNode: { +interface AudioBufferSourceNodeConstructor { prototype: AudioBufferSourceNode; new(context: BaseAudioContext, options?: AudioBufferSourceOptions): AudioBufferSourceNode; -}; +} +declare var AudioBufferSourceNode: AudioBufferSourceNodeConstructor; /** An audio-processing graph built from audio modules linked together, each represented by an AudioNode. */ interface AudioContext extends BaseAudioContext { @@ -2188,20 +2201,22 @@ interface AudioContext extends BaseAudioContext { removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } -declare var AudioContext: { +interface AudioContextConstructor { prototype: AudioContext; new(contextOptions?: AudioContextOptions): AudioContext; -}; +} +declare var AudioContext: AudioContextConstructor; /** AudioDestinationNode has no output (as it is the output, no more AudioNode can be linked after it in the audio graph) and one input. The number of channels in the input must be between 0 and the maxChannelCount value or an exception is raised. */ interface AudioDestinationNode extends AudioNode { readonly maxChannelCount: number; } -declare var AudioDestinationNode: { +interface AudioDestinationNodeConstructor { prototype: AudioDestinationNode; new(): AudioDestinationNode; -}; +} +declare var AudioDestinationNode: AudioDestinationNodeConstructor; /** The position and orientation of the unique person listening to the audio scene, and is used in audio spatialization. All PannerNodes spatialize in relation to the AudioListener stored in the BaseAudioContext.listener attribute. */ interface AudioListener { @@ -2220,10 +2235,11 @@ interface AudioListener { setPosition(x: number, y: number, z: number): void; } -declare var AudioListener: { +interface AudioListenerConstructor { prototype: AudioListener; new(): AudioListener; -}; +} +declare var AudioListener: AudioListenerConstructor; /** A generic interface for representing an audio processing module. Examples include: */ interface AudioNode extends EventTarget { @@ -2244,10 +2260,11 @@ interface AudioNode extends EventTarget { disconnect(destinationParam: AudioParam, output: number): void; } -declare var AudioNode: { +interface AudioNodeConstructor { prototype: AudioNode; new(): AudioNode; -}; +} +declare var AudioNode: AudioNodeConstructor; /** The Web Audio API's AudioParam interface represents an audio-related parameter, usually a parameter of an AudioNode (such as GainNode.gain). */ interface AudioParam { @@ -2265,19 +2282,21 @@ interface AudioParam { setValueCurveAtTime(values: number[] | Float32Array, startTime: number, duration: number): AudioParam; } -declare var AudioParam: { +interface AudioParamConstructor { prototype: AudioParam; new(): AudioParam; -}; +} +declare var AudioParam: AudioParamConstructor; interface AudioParamMap { forEach(callbackfn: (value: AudioParam, key: string, parent: AudioParamMap) => void, thisArg?: any): void; } -declare var AudioParamMap: { +interface AudioParamMapConstructor { prototype: AudioParamMap; new(): AudioParamMap; -}; +} +declare var AudioParamMap: AudioParamMapConstructor; /** The Web Audio API events that occur when a ScriptProcessorNode input buffer is ready to be processed. */ interface AudioProcessingEvent extends Event { @@ -2286,10 +2305,11 @@ interface AudioProcessingEvent extends Event { readonly playbackTime: number; } -declare var AudioProcessingEvent: { +interface AudioProcessingEventConstructor { prototype: AudioProcessingEvent; new(type: string, eventInitDict: AudioProcessingEventInit): AudioProcessingEvent; -}; +} +declare var AudioProcessingEvent: AudioProcessingEventConstructor; interface AudioScheduledSourceNodeEventMap { "ended": Event; @@ -2305,10 +2325,11 @@ interface AudioScheduledSourceNode extends AudioNode { removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } -declare var AudioScheduledSourceNode: { +interface AudioScheduledSourceNodeConstructor { prototype: AudioScheduledSourceNode; new(): AudioScheduledSourceNode; -}; +} +declare var AudioScheduledSourceNode: AudioScheduledSourceNodeConstructor; /** A single audio track from one of the HTML media elements,