diff --git a/baselines/audioworklet.generated.d.ts b/baselines/audioworklet.generated.d.ts index dc7ea4402..ebcbe36ef 100644 --- a/baselines/audioworklet.generated.d.ts +++ b/baselines/audioworklet.generated.d.ts @@ -1887,7 +1887,7 @@ interface Console { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static) */ - dir(item?: any, options?: any): void; + dir(item?: any, options?: object | null): void; /** * The **`console.dirxml()`** static method displays an interactive tree of the descendant elements of the specified XML/HTML element. If it is not possible to display as an element the JavaScript Object view is shown instead. The output is presented as a hierarchical listing of expandable nodes that let you see the contents of child nodes. * diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index 36efec21a..3f701abb8 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -192,7 +192,7 @@ interface AudioWorkletNodeOptions extends AudioNodeOptions { numberOfOutputs?: number; outputChannelCount?: number[]; parameterData?: Record; - processorOptions?: any; + processorOptions?: object; } interface AuthenticationExtensionsClientInputs { @@ -1859,14 +1859,14 @@ interface PaymentDetailsInit extends PaymentDetailsBase { interface PaymentDetailsModifier { additionalDisplayItems?: PaymentItem[]; - data?: any; + data?: object; supportedMethods: string; total?: PaymentItem; } interface PaymentDetailsUpdate extends PaymentDetailsBase { error?: string; - paymentMethodErrors?: any; + paymentMethodErrors?: object; shippingAddressErrors?: AddressErrors; total?: PaymentItem; } @@ -1878,12 +1878,12 @@ interface PaymentItem { } interface PaymentMethodChangeEventInit extends PaymentRequestUpdateEventInit { - methodDetails?: any; + methodDetails?: object | null; methodName?: string; } interface PaymentMethodData { - data?: any; + data?: object; supportedMethods: string; } @@ -12172,7 +12172,7 @@ interface DOMMatrixReadOnly { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toJSON) */ - toJSON(): any; + toJSON(): object; /** * The **`transformPoint`** method of the DOMMatrixReadOnly interface creates a new DOMPoint object, transforming a specified point by the matrix. Neither the matrix nor the original point are altered. * @@ -12317,7 +12317,7 @@ interface DOMPointReadOnly { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var DOMPointReadOnly: { @@ -12372,7 +12372,7 @@ interface DOMQuad { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var DOMQuad: { @@ -12523,7 +12523,7 @@ interface DOMRectReadOnly { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var DOMRectReadOnly: { @@ -12970,9 +12970,9 @@ declare var DeviceOrientationEvent: { /** Available only in secure contexts. */ interface DigitalCredential extends Credential { - readonly data: any; + readonly data: object; readonly protocol: string; - toJSON(): any; + toJSON(): object; } declare var DigitalCredential: { @@ -17119,7 +17119,7 @@ interface GeolocationCoordinates { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var GeolocationCoordinates: { @@ -17151,7 +17151,7 @@ interface GeolocationPosition { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var GeolocationPosition: { @@ -23895,7 +23895,7 @@ interface LargestContentfulPaint extends PerformanceEntry, PaintTimingMixin { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var LargestContentfulPaint: { @@ -24372,7 +24372,7 @@ interface MediaDeviceInfo { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var MediaDeviceInfo: { @@ -27786,7 +27786,7 @@ interface PaymentAddress { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PaymentAddress: { @@ -27806,7 +27806,7 @@ interface PaymentMethodChangeEvent extends PaymentRequestUpdateEvent { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentMethodChangeEvent/methodDetails) */ - readonly methodDetails: any; + readonly methodDetails: object | null; /** * The read-only **`methodName`** property of the PaymentMethodChangeEvent interface is a string which uniquely identifies the payment handler currently selected by the user. The payment handler may be a payment technology, such as Apple Pay or Android Pay, and each payment handler may support multiple payment methods; changes to the payment method within the payment handler are described by the PaymentMethodChangeEvent. * @@ -27939,7 +27939,7 @@ interface PaymentResponse extends EventTarget { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/details) */ - readonly details: any; + readonly details: object; /** * The **`methodName`** read-only property of the PaymentResponse interface returns a string uniquely identifying the payment handler selected by the user. * @@ -28001,7 +28001,7 @@ interface PaymentResponse extends EventTarget { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/toJSON) */ - toJSON(): any; + toJSON(): object; addEventListener(type: K, listener: (this: PaymentResponse, ev: PaymentResponseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: PaymentResponse, ev: PaymentResponseEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -28122,7 +28122,7 @@ interface Performance extends EventTarget { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/toJSON) */ - toJSON(): any; + toJSON(): object; addEventListener(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -28169,7 +28169,7 @@ interface PerformanceEntry { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceEntry: { @@ -28218,7 +28218,7 @@ interface PerformanceEventTiming extends PerformanceEntry { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceEventTiming: { @@ -28291,7 +28291,7 @@ interface PerformanceNavigation { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigation/toJSON) */ - toJSON(): any; + toJSON(): object; readonly TYPE_NAVIGATE: 0; readonly TYPE_RELOAD: 1; readonly TYPE_BACK_FORWARD: 2; @@ -28379,7 +28379,7 @@ interface PerformanceNavigationTiming extends PerformanceResourceTiming { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceNavigationTiming: { @@ -28466,7 +28466,7 @@ interface PerformancePaintTiming extends PerformanceEntry, PaintTimingMixin { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformancePaintTiming/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformancePaintTiming: { @@ -28623,7 +28623,7 @@ interface PerformanceResourceTiming extends PerformanceEntry { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceResourceTiming: { @@ -28660,7 +28660,7 @@ interface PerformanceServerTiming { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceServerTiming: { @@ -28828,7 +28828,7 @@ interface PerformanceTiming { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/toJSON) */ - toJSON(): any; + toJSON(): object; } /** @deprecated */ @@ -30373,7 +30373,7 @@ interface RTCRtpScriptTransform { declare var RTCRtpScriptTransform: { prototype: RTCRtpScriptTransform; - new(workerOrWorkerAndParameters: Worker, options?: any, transfer?: any[]): RTCRtpScriptTransform; + new(workerOrWorkerAndParameters: Worker, options?: any, transfer?: object[]): RTCRtpScriptTransform; }; /** @@ -30588,7 +30588,7 @@ declare var RTCSessionDescription: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCStatsReport) */ interface RTCStatsReport { - forEach(callbackfn: (value: any, key: string, parent: RTCStatsReport) => void, thisArg?: any): void; + forEach(callbackfn: (value: object, key: string, parent: RTCStatsReport) => void, thisArg?: any): void; } declare var RTCStatsReport: { @@ -40973,7 +40973,7 @@ interface WebGLRenderingContextBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getError) */ getError(): GLenum; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getExtension) */ - getExtension(name: string): any; + getExtension(name: string): object | null; getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null; getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null; getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null; @@ -43688,7 +43688,7 @@ interface Console { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static) */ - dir(item?: any, options?: any): void; + dir(item?: any, options?: object | null): void; /** * The **`console.dirxml()`** static method displays an interactive tree of the descendant elements of the specified XML/HTML element. If it is not possible to display as an element the JavaScript Object view is shown instead. The output is presented as a hierarchical listing of expandable nodes that let you see the contents of child nodes. * @@ -45725,7 +45725,7 @@ interface RTCRtpTransceiver { setCodecPreferences(codecs: Iterable): void; } -interface RTCStatsReport extends ReadonlyMap { +interface RTCStatsReport extends ReadonlyMap { } interface SVGLengthList { diff --git a/baselines/serviceworker.generated.d.ts b/baselines/serviceworker.generated.d.ts index 8cb951d64..9f80227ff 100644 --- a/baselines/serviceworker.generated.d.ts +++ b/baselines/serviceworker.generated.d.ts @@ -3225,7 +3225,7 @@ interface DOMMatrixReadOnly { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toJSON) */ - toJSON(): any; + toJSON(): object; /** * The **`transformPoint`** method of the DOMMatrixReadOnly interface creates a new DOMPoint object, transforming a specified point by the matrix. Neither the matrix nor the original point are altered. * @@ -3347,7 +3347,7 @@ interface DOMPointReadOnly { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var DOMPointReadOnly: { @@ -3402,7 +3402,7 @@ interface DOMQuad { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var DOMQuad: { @@ -3524,7 +3524,7 @@ interface DOMRectReadOnly { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var DOMRectReadOnly: { @@ -7458,7 +7458,7 @@ interface Performance extends EventTarget { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/toJSON) */ - toJSON(): any; + toJSON(): object; addEventListener(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -7505,7 +7505,7 @@ interface PerformanceEntry { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceEntry: { @@ -7768,7 +7768,7 @@ interface PerformanceResourceTiming extends PerformanceEntry { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceResourceTiming: { @@ -7805,7 +7805,7 @@ interface PerformanceServerTiming { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceServerTiming: { @@ -11562,7 +11562,7 @@ interface WebGLRenderingContextBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getError) */ getError(): GLenum; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getExtension) */ - getExtension(name: string): any; + getExtension(name: string): object | null; getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null; getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null; getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null; @@ -13244,7 +13244,7 @@ interface Console { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static) */ - dir(item?: any, options?: any): void; + dir(item?: any, options?: object | null): void; /** * The **`console.dirxml()`** static method displays an interactive tree of the descendant elements of the specified XML/HTML element. If it is not possible to display as an element the JavaScript Object view is shown instead. The output is presented as a hierarchical listing of expandable nodes that let you see the contents of child nodes. * diff --git a/baselines/sharedworker.generated.d.ts b/baselines/sharedworker.generated.d.ts index 5b0dd9d68..ec64d8b01 100644 --- a/baselines/sharedworker.generated.d.ts +++ b/baselines/sharedworker.generated.d.ts @@ -3006,7 +3006,7 @@ interface DOMMatrixReadOnly { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toJSON) */ - toJSON(): any; + toJSON(): object; /** * The **`transformPoint`** method of the DOMMatrixReadOnly interface creates a new DOMPoint object, transforming a specified point by the matrix. Neither the matrix nor the original point are altered. * @@ -3128,7 +3128,7 @@ interface DOMPointReadOnly { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var DOMPointReadOnly: { @@ -3183,7 +3183,7 @@ interface DOMQuad { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var DOMQuad: { @@ -3305,7 +3305,7 @@ interface DOMRectReadOnly { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var DOMRectReadOnly: { @@ -7116,7 +7116,7 @@ interface Performance extends EventTarget { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/toJSON) */ - toJSON(): any; + toJSON(): object; addEventListener(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -7163,7 +7163,7 @@ interface PerformanceEntry { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceEntry: { @@ -7426,7 +7426,7 @@ interface PerformanceResourceTiming extends PerformanceEntry { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceResourceTiming: { @@ -7463,7 +7463,7 @@ interface PerformanceServerTiming { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceServerTiming: { @@ -11105,7 +11105,7 @@ interface WebGLRenderingContextBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getError) */ getError(): GLenum; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getExtension) */ - getExtension(name: string): any; + getExtension(name: string): object | null; getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null; getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null; getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null; @@ -12970,7 +12970,7 @@ interface Console { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static) */ - dir(item?: any, options?: any): void; + dir(item?: any, options?: object | null): void; /** * The **`console.dirxml()`** static method displays an interactive tree of the descendant elements of the specified XML/HTML element. If it is not possible to display as an element the JavaScript Object view is shown instead. The output is presented as a hierarchical listing of expandable nodes that let you see the contents of child nodes. * diff --git a/baselines/ts5.5/audioworklet.generated.d.ts b/baselines/ts5.5/audioworklet.generated.d.ts index b60857baa..61e57cb2c 100644 --- a/baselines/ts5.5/audioworklet.generated.d.ts +++ b/baselines/ts5.5/audioworklet.generated.d.ts @@ -1884,7 +1884,7 @@ interface Console { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static) */ - dir(item?: any, options?: any): void; + dir(item?: any, options?: object | null): void; /** * The **`console.dirxml()`** static method displays an interactive tree of the descendant elements of the specified XML/HTML element. If it is not possible to display as an element the JavaScript Object view is shown instead. The output is presented as a hierarchical listing of expandable nodes that let you see the contents of child nodes. * diff --git a/baselines/ts5.5/dom.generated.d.ts b/baselines/ts5.5/dom.generated.d.ts index cfc5d9125..af4afdc33 100644 --- a/baselines/ts5.5/dom.generated.d.ts +++ b/baselines/ts5.5/dom.generated.d.ts @@ -189,7 +189,7 @@ interface AudioWorkletNodeOptions extends AudioNodeOptions { numberOfOutputs?: number; outputChannelCount?: number[]; parameterData?: Record; - processorOptions?: any; + processorOptions?: object; } interface AuthenticationExtensionsClientInputs { @@ -1856,14 +1856,14 @@ interface PaymentDetailsInit extends PaymentDetailsBase { interface PaymentDetailsModifier { additionalDisplayItems?: PaymentItem[]; - data?: any; + data?: object; supportedMethods: string; total?: PaymentItem; } interface PaymentDetailsUpdate extends PaymentDetailsBase { error?: string; - paymentMethodErrors?: any; + paymentMethodErrors?: object; shippingAddressErrors?: AddressErrors; total?: PaymentItem; } @@ -1875,12 +1875,12 @@ interface PaymentItem { } interface PaymentMethodChangeEventInit extends PaymentRequestUpdateEventInit { - methodDetails?: any; + methodDetails?: object | null; methodName?: string; } interface PaymentMethodData { - data?: any; + data?: object; supportedMethods: string; } @@ -12161,7 +12161,7 @@ interface DOMMatrixReadOnly { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toJSON) */ - toJSON(): any; + toJSON(): object; /** * The **`transformPoint`** method of the DOMMatrixReadOnly interface creates a new DOMPoint object, transforming a specified point by the matrix. Neither the matrix nor the original point are altered. * @@ -12306,7 +12306,7 @@ interface DOMPointReadOnly { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var DOMPointReadOnly: { @@ -12361,7 +12361,7 @@ interface DOMQuad { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var DOMQuad: { @@ -12512,7 +12512,7 @@ interface DOMRectReadOnly { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var DOMRectReadOnly: { @@ -12959,9 +12959,9 @@ declare var DeviceOrientationEvent: { /** Available only in secure contexts. */ interface DigitalCredential extends Credential { - readonly data: any; + readonly data: object; readonly protocol: string; - toJSON(): any; + toJSON(): object; } declare var DigitalCredential: { @@ -17105,7 +17105,7 @@ interface GeolocationCoordinates { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var GeolocationCoordinates: { @@ -17137,7 +17137,7 @@ interface GeolocationPosition { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var GeolocationPosition: { @@ -23871,7 +23871,7 @@ interface LargestContentfulPaint extends PerformanceEntry, PaintTimingMixin { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var LargestContentfulPaint: { @@ -24348,7 +24348,7 @@ interface MediaDeviceInfo { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var MediaDeviceInfo: { @@ -27762,7 +27762,7 @@ interface PaymentAddress { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PaymentAddress: { @@ -27782,7 +27782,7 @@ interface PaymentMethodChangeEvent extends PaymentRequestUpdateEvent { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentMethodChangeEvent/methodDetails) */ - readonly methodDetails: any; + readonly methodDetails: object | null; /** * The read-only **`methodName`** property of the PaymentMethodChangeEvent interface is a string which uniquely identifies the payment handler currently selected by the user. The payment handler may be a payment technology, such as Apple Pay or Android Pay, and each payment handler may support multiple payment methods; changes to the payment method within the payment handler are described by the PaymentMethodChangeEvent. * @@ -27915,7 +27915,7 @@ interface PaymentResponse extends EventTarget { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/details) */ - readonly details: any; + readonly details: object; /** * The **`methodName`** read-only property of the PaymentResponse interface returns a string uniquely identifying the payment handler selected by the user. * @@ -27977,7 +27977,7 @@ interface PaymentResponse extends EventTarget { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/toJSON) */ - toJSON(): any; + toJSON(): object; addEventListener(type: K, listener: (this: PaymentResponse, ev: PaymentResponseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: PaymentResponse, ev: PaymentResponseEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -28098,7 +28098,7 @@ interface Performance extends EventTarget { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/toJSON) */ - toJSON(): any; + toJSON(): object; addEventListener(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -28145,7 +28145,7 @@ interface PerformanceEntry { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceEntry: { @@ -28194,7 +28194,7 @@ interface PerformanceEventTiming extends PerformanceEntry { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceEventTiming: { @@ -28267,7 +28267,7 @@ interface PerformanceNavigation { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigation/toJSON) */ - toJSON(): any; + toJSON(): object; readonly TYPE_NAVIGATE: 0; readonly TYPE_RELOAD: 1; readonly TYPE_BACK_FORWARD: 2; @@ -28355,7 +28355,7 @@ interface PerformanceNavigationTiming extends PerformanceResourceTiming { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceNavigationTiming: { @@ -28442,7 +28442,7 @@ interface PerformancePaintTiming extends PerformanceEntry, PaintTimingMixin { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformancePaintTiming/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformancePaintTiming: { @@ -28599,7 +28599,7 @@ interface PerformanceResourceTiming extends PerformanceEntry { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceResourceTiming: { @@ -28636,7 +28636,7 @@ interface PerformanceServerTiming { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceServerTiming: { @@ -28804,7 +28804,7 @@ interface PerformanceTiming { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/toJSON) */ - toJSON(): any; + toJSON(): object; } /** @deprecated */ @@ -30349,7 +30349,7 @@ interface RTCRtpScriptTransform { declare var RTCRtpScriptTransform: { prototype: RTCRtpScriptTransform; - new(workerOrWorkerAndParameters: Worker, options?: any, transfer?: any[]): RTCRtpScriptTransform; + new(workerOrWorkerAndParameters: Worker, options?: any, transfer?: object[]): RTCRtpScriptTransform; }; /** @@ -30564,7 +30564,7 @@ declare var RTCSessionDescription: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCStatsReport) */ interface RTCStatsReport { - forEach(callbackfn: (value: any, key: string, parent: RTCStatsReport) => void, thisArg?: any): void; + forEach(callbackfn: (value: object, key: string, parent: RTCStatsReport) => void, thisArg?: any): void; } declare var RTCStatsReport: { @@ -40947,7 +40947,7 @@ interface WebGLRenderingContextBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getError) */ getError(): GLenum; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getExtension) */ - getExtension(name: string): any; + getExtension(name: string): object | null; getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null; getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null; getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null; @@ -43662,7 +43662,7 @@ interface Console { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static) */ - dir(item?: any, options?: any): void; + dir(item?: any, options?: object | null): void; /** * The **`console.dirxml()`** static method displays an interactive tree of the descendant elements of the specified XML/HTML element. If it is not possible to display as an element the JavaScript Object view is shown instead. The output is presented as a hierarchical listing of expandable nodes that let you see the contents of child nodes. * diff --git a/baselines/ts5.5/dom.iterable.generated.d.ts b/baselines/ts5.5/dom.iterable.generated.d.ts index 45eabeefd..972432637 100644 --- a/baselines/ts5.5/dom.iterable.generated.d.ts +++ b/baselines/ts5.5/dom.iterable.generated.d.ts @@ -353,7 +353,7 @@ interface RTCRtpTransceiver { setCodecPreferences(codecs: Iterable): void; } -interface RTCStatsReport extends ReadonlyMap { +interface RTCStatsReport extends ReadonlyMap { } interface SVGLengthList { diff --git a/baselines/ts5.5/serviceworker.generated.d.ts b/baselines/ts5.5/serviceworker.generated.d.ts index a0d7fea68..a2c79d222 100644 --- a/baselines/ts5.5/serviceworker.generated.d.ts +++ b/baselines/ts5.5/serviceworker.generated.d.ts @@ -3222,7 +3222,7 @@ interface DOMMatrixReadOnly { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toJSON) */ - toJSON(): any; + toJSON(): object; /** * The **`transformPoint`** method of the DOMMatrixReadOnly interface creates a new DOMPoint object, transforming a specified point by the matrix. Neither the matrix nor the original point are altered. * @@ -3344,7 +3344,7 @@ interface DOMPointReadOnly { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var DOMPointReadOnly: { @@ -3399,7 +3399,7 @@ interface DOMQuad { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var DOMQuad: { @@ -3521,7 +3521,7 @@ interface DOMRectReadOnly { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var DOMRectReadOnly: { @@ -7455,7 +7455,7 @@ interface Performance extends EventTarget { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/toJSON) */ - toJSON(): any; + toJSON(): object; addEventListener(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -7502,7 +7502,7 @@ interface PerformanceEntry { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceEntry: { @@ -7765,7 +7765,7 @@ interface PerformanceResourceTiming extends PerformanceEntry { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceResourceTiming: { @@ -7802,7 +7802,7 @@ interface PerformanceServerTiming { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceServerTiming: { @@ -11559,7 +11559,7 @@ interface WebGLRenderingContextBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getError) */ getError(): GLenum; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getExtension) */ - getExtension(name: string): any; + getExtension(name: string): object | null; getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null; getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null; getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null; @@ -13241,7 +13241,7 @@ interface Console { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static) */ - dir(item?: any, options?: any): void; + dir(item?: any, options?: object | null): void; /** * The **`console.dirxml()`** static method displays an interactive tree of the descendant elements of the specified XML/HTML element. If it is not possible to display as an element the JavaScript Object view is shown instead. The output is presented as a hierarchical listing of expandable nodes that let you see the contents of child nodes. * diff --git a/baselines/ts5.5/sharedworker.generated.d.ts b/baselines/ts5.5/sharedworker.generated.d.ts index f6424baa7..d9d8bcb28 100644 --- a/baselines/ts5.5/sharedworker.generated.d.ts +++ b/baselines/ts5.5/sharedworker.generated.d.ts @@ -3003,7 +3003,7 @@ interface DOMMatrixReadOnly { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toJSON) */ - toJSON(): any; + toJSON(): object; /** * The **`transformPoint`** method of the DOMMatrixReadOnly interface creates a new DOMPoint object, transforming a specified point by the matrix. Neither the matrix nor the original point are altered. * @@ -3125,7 +3125,7 @@ interface DOMPointReadOnly { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var DOMPointReadOnly: { @@ -3180,7 +3180,7 @@ interface DOMQuad { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var DOMQuad: { @@ -3302,7 +3302,7 @@ interface DOMRectReadOnly { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var DOMRectReadOnly: { @@ -7113,7 +7113,7 @@ interface Performance extends EventTarget { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/toJSON) */ - toJSON(): any; + toJSON(): object; addEventListener(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -7160,7 +7160,7 @@ interface PerformanceEntry { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceEntry: { @@ -7423,7 +7423,7 @@ interface PerformanceResourceTiming extends PerformanceEntry { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceResourceTiming: { @@ -7460,7 +7460,7 @@ interface PerformanceServerTiming { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceServerTiming: { @@ -11102,7 +11102,7 @@ interface WebGLRenderingContextBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getError) */ getError(): GLenum; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getExtension) */ - getExtension(name: string): any; + getExtension(name: string): object | null; getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null; getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null; getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null; @@ -12967,7 +12967,7 @@ interface Console { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static) */ - dir(item?: any, options?: any): void; + dir(item?: any, options?: object | null): void; /** * The **`console.dirxml()`** static method displays an interactive tree of the descendant elements of the specified XML/HTML element. If it is not possible to display as an element the JavaScript Object view is shown instead. The output is presented as a hierarchical listing of expandable nodes that let you see the contents of child nodes. * diff --git a/baselines/ts5.5/webworker.generated.d.ts b/baselines/ts5.5/webworker.generated.d.ts index 7ec31a503..655602125 100644 --- a/baselines/ts5.5/webworker.generated.d.ts +++ b/baselines/ts5.5/webworker.generated.d.ts @@ -3729,7 +3729,7 @@ interface DOMMatrixReadOnly { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toJSON) */ - toJSON(): any; + toJSON(): object; /** * The **`transformPoint`** method of the DOMMatrixReadOnly interface creates a new DOMPoint object, transforming a specified point by the matrix. Neither the matrix nor the original point are altered. * @@ -3851,7 +3851,7 @@ interface DOMPointReadOnly { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var DOMPointReadOnly: { @@ -3906,7 +3906,7 @@ interface DOMQuad { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var DOMQuad: { @@ -4028,7 +4028,7 @@ interface DOMRectReadOnly { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var DOMRectReadOnly: { @@ -8357,7 +8357,7 @@ interface Performance extends EventTarget { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/toJSON) */ - toJSON(): any; + toJSON(): object; addEventListener(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -8404,7 +8404,7 @@ interface PerformanceEntry { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceEntry: { @@ -8667,7 +8667,7 @@ interface PerformanceResourceTiming extends PerformanceEntry { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceResourceTiming: { @@ -8704,7 +8704,7 @@ interface PerformanceServerTiming { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceServerTiming: { @@ -13143,7 +13143,7 @@ interface WebGLRenderingContextBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getError) */ getError(): GLenum; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getExtension) */ - getExtension(name: string): any; + getExtension(name: string): object | null; getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null; getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null; getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null; @@ -15051,7 +15051,7 @@ interface Console { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static) */ - dir(item?: any, options?: any): void; + dir(item?: any, options?: object | null): void; /** * The **`console.dirxml()`** static method displays an interactive tree of the descendant elements of the specified XML/HTML element. If it is not possible to display as an element the JavaScript Object view is shown instead. The output is presented as a hierarchical listing of expandable nodes that let you see the contents of child nodes. * diff --git a/baselines/ts5.6/audioworklet.generated.d.ts b/baselines/ts5.6/audioworklet.generated.d.ts index b60857baa..61e57cb2c 100644 --- a/baselines/ts5.6/audioworklet.generated.d.ts +++ b/baselines/ts5.6/audioworklet.generated.d.ts @@ -1884,7 +1884,7 @@ interface Console { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static) */ - dir(item?: any, options?: any): void; + dir(item?: any, options?: object | null): void; /** * The **`console.dirxml()`** static method displays an interactive tree of the descendant elements of the specified XML/HTML element. If it is not possible to display as an element the JavaScript Object view is shown instead. The output is presented as a hierarchical listing of expandable nodes that let you see the contents of child nodes. * diff --git a/baselines/ts5.6/dom.generated.d.ts b/baselines/ts5.6/dom.generated.d.ts index 066bae672..069428384 100644 --- a/baselines/ts5.6/dom.generated.d.ts +++ b/baselines/ts5.6/dom.generated.d.ts @@ -189,7 +189,7 @@ interface AudioWorkletNodeOptions extends AudioNodeOptions { numberOfOutputs?: number; outputChannelCount?: number[]; parameterData?: Record; - processorOptions?: any; + processorOptions?: object; } interface AuthenticationExtensionsClientInputs { @@ -1856,14 +1856,14 @@ interface PaymentDetailsInit extends PaymentDetailsBase { interface PaymentDetailsModifier { additionalDisplayItems?: PaymentItem[]; - data?: any; + data?: object; supportedMethods: string; total?: PaymentItem; } interface PaymentDetailsUpdate extends PaymentDetailsBase { error?: string; - paymentMethodErrors?: any; + paymentMethodErrors?: object; shippingAddressErrors?: AddressErrors; total?: PaymentItem; } @@ -1875,12 +1875,12 @@ interface PaymentItem { } interface PaymentMethodChangeEventInit extends PaymentRequestUpdateEventInit { - methodDetails?: any; + methodDetails?: object | null; methodName?: string; } interface PaymentMethodData { - data?: any; + data?: object; supportedMethods: string; } @@ -12169,7 +12169,7 @@ interface DOMMatrixReadOnly { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toJSON) */ - toJSON(): any; + toJSON(): object; /** * The **`transformPoint`** method of the DOMMatrixReadOnly interface creates a new DOMPoint object, transforming a specified point by the matrix. Neither the matrix nor the original point are altered. * @@ -12314,7 +12314,7 @@ interface DOMPointReadOnly { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var DOMPointReadOnly: { @@ -12369,7 +12369,7 @@ interface DOMQuad { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var DOMQuad: { @@ -12520,7 +12520,7 @@ interface DOMRectReadOnly { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var DOMRectReadOnly: { @@ -12967,9 +12967,9 @@ declare var DeviceOrientationEvent: { /** Available only in secure contexts. */ interface DigitalCredential extends Credential { - readonly data: any; + readonly data: object; readonly protocol: string; - toJSON(): any; + toJSON(): object; } declare var DigitalCredential: { @@ -17116,7 +17116,7 @@ interface GeolocationCoordinates { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var GeolocationCoordinates: { @@ -17148,7 +17148,7 @@ interface GeolocationPosition { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var GeolocationPosition: { @@ -23892,7 +23892,7 @@ interface LargestContentfulPaint extends PerformanceEntry, PaintTimingMixin { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var LargestContentfulPaint: { @@ -24369,7 +24369,7 @@ interface MediaDeviceInfo { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var MediaDeviceInfo: { @@ -27783,7 +27783,7 @@ interface PaymentAddress { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PaymentAddress: { @@ -27803,7 +27803,7 @@ interface PaymentMethodChangeEvent extends PaymentRequestUpdateEvent { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentMethodChangeEvent/methodDetails) */ - readonly methodDetails: any; + readonly methodDetails: object | null; /** * The read-only **`methodName`** property of the PaymentMethodChangeEvent interface is a string which uniquely identifies the payment handler currently selected by the user. The payment handler may be a payment technology, such as Apple Pay or Android Pay, and each payment handler may support multiple payment methods; changes to the payment method within the payment handler are described by the PaymentMethodChangeEvent. * @@ -27936,7 +27936,7 @@ interface PaymentResponse extends EventTarget { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/details) */ - readonly details: any; + readonly details: object; /** * The **`methodName`** read-only property of the PaymentResponse interface returns a string uniquely identifying the payment handler selected by the user. * @@ -27998,7 +27998,7 @@ interface PaymentResponse extends EventTarget { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/toJSON) */ - toJSON(): any; + toJSON(): object; addEventListener(type: K, listener: (this: PaymentResponse, ev: PaymentResponseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: PaymentResponse, ev: PaymentResponseEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -28119,7 +28119,7 @@ interface Performance extends EventTarget { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/toJSON) */ - toJSON(): any; + toJSON(): object; addEventListener(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -28166,7 +28166,7 @@ interface PerformanceEntry { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceEntry: { @@ -28215,7 +28215,7 @@ interface PerformanceEventTiming extends PerformanceEntry { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceEventTiming: { @@ -28288,7 +28288,7 @@ interface PerformanceNavigation { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigation/toJSON) */ - toJSON(): any; + toJSON(): object; readonly TYPE_NAVIGATE: 0; readonly TYPE_RELOAD: 1; readonly TYPE_BACK_FORWARD: 2; @@ -28376,7 +28376,7 @@ interface PerformanceNavigationTiming extends PerformanceResourceTiming { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceNavigationTiming: { @@ -28463,7 +28463,7 @@ interface PerformancePaintTiming extends PerformanceEntry, PaintTimingMixin { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformancePaintTiming/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformancePaintTiming: { @@ -28620,7 +28620,7 @@ interface PerformanceResourceTiming extends PerformanceEntry { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceResourceTiming: { @@ -28657,7 +28657,7 @@ interface PerformanceServerTiming { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceServerTiming: { @@ -28825,7 +28825,7 @@ interface PerformanceTiming { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/toJSON) */ - toJSON(): any; + toJSON(): object; } /** @deprecated */ @@ -30370,7 +30370,7 @@ interface RTCRtpScriptTransform { declare var RTCRtpScriptTransform: { prototype: RTCRtpScriptTransform; - new(workerOrWorkerAndParameters: Worker, options?: any, transfer?: any[]): RTCRtpScriptTransform; + new(workerOrWorkerAndParameters: Worker, options?: any, transfer?: object[]): RTCRtpScriptTransform; }; /** @@ -30585,7 +30585,7 @@ declare var RTCSessionDescription: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCStatsReport) */ interface RTCStatsReport { - forEach(callbackfn: (value: any, key: string, parent: RTCStatsReport) => void, thisArg?: any): void; + forEach(callbackfn: (value: object, key: string, parent: RTCStatsReport) => void, thisArg?: any): void; } declare var RTCStatsReport: { @@ -40970,7 +40970,7 @@ interface WebGLRenderingContextBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getError) */ getError(): GLenum; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getExtension) */ - getExtension(name: string): any; + getExtension(name: string): object | null; getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null; getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null; getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null; @@ -43685,7 +43685,7 @@ interface Console { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static) */ - dir(item?: any, options?: any): void; + dir(item?: any, options?: object | null): void; /** * The **`console.dirxml()`** static method displays an interactive tree of the descendant elements of the specified XML/HTML element. If it is not possible to display as an element the JavaScript Object view is shown instead. The output is presented as a hierarchical listing of expandable nodes that let you see the contents of child nodes. * diff --git a/baselines/ts5.6/dom.iterable.generated.d.ts b/baselines/ts5.6/dom.iterable.generated.d.ts index 3cf3ab407..63987f245 100644 --- a/baselines/ts5.6/dom.iterable.generated.d.ts +++ b/baselines/ts5.6/dom.iterable.generated.d.ts @@ -365,7 +365,7 @@ interface RTCRtpTransceiver { setCodecPreferences(codecs: Iterable): void; } -interface RTCStatsReport extends ReadonlyMap { +interface RTCStatsReport extends ReadonlyMap { } interface SVGLengthList { diff --git a/baselines/ts5.6/serviceworker.generated.d.ts b/baselines/ts5.6/serviceworker.generated.d.ts index a0d7fea68..a2c79d222 100644 --- a/baselines/ts5.6/serviceworker.generated.d.ts +++ b/baselines/ts5.6/serviceworker.generated.d.ts @@ -3222,7 +3222,7 @@ interface DOMMatrixReadOnly { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toJSON) */ - toJSON(): any; + toJSON(): object; /** * The **`transformPoint`** method of the DOMMatrixReadOnly interface creates a new DOMPoint object, transforming a specified point by the matrix. Neither the matrix nor the original point are altered. * @@ -3344,7 +3344,7 @@ interface DOMPointReadOnly { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var DOMPointReadOnly: { @@ -3399,7 +3399,7 @@ interface DOMQuad { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var DOMQuad: { @@ -3521,7 +3521,7 @@ interface DOMRectReadOnly { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var DOMRectReadOnly: { @@ -7455,7 +7455,7 @@ interface Performance extends EventTarget { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/toJSON) */ - toJSON(): any; + toJSON(): object; addEventListener(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -7502,7 +7502,7 @@ interface PerformanceEntry { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceEntry: { @@ -7765,7 +7765,7 @@ interface PerformanceResourceTiming extends PerformanceEntry { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceResourceTiming: { @@ -7802,7 +7802,7 @@ interface PerformanceServerTiming { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceServerTiming: { @@ -11559,7 +11559,7 @@ interface WebGLRenderingContextBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getError) */ getError(): GLenum; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getExtension) */ - getExtension(name: string): any; + getExtension(name: string): object | null; getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null; getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null; getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null; @@ -13241,7 +13241,7 @@ interface Console { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static) */ - dir(item?: any, options?: any): void; + dir(item?: any, options?: object | null): void; /** * The **`console.dirxml()`** static method displays an interactive tree of the descendant elements of the specified XML/HTML element. If it is not possible to display as an element the JavaScript Object view is shown instead. The output is presented as a hierarchical listing of expandable nodes that let you see the contents of child nodes. * diff --git a/baselines/ts5.6/sharedworker.generated.d.ts b/baselines/ts5.6/sharedworker.generated.d.ts index f6424baa7..d9d8bcb28 100644 --- a/baselines/ts5.6/sharedworker.generated.d.ts +++ b/baselines/ts5.6/sharedworker.generated.d.ts @@ -3003,7 +3003,7 @@ interface DOMMatrixReadOnly { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toJSON) */ - toJSON(): any; + toJSON(): object; /** * The **`transformPoint`** method of the DOMMatrixReadOnly interface creates a new DOMPoint object, transforming a specified point by the matrix. Neither the matrix nor the original point are altered. * @@ -3125,7 +3125,7 @@ interface DOMPointReadOnly { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var DOMPointReadOnly: { @@ -3180,7 +3180,7 @@ interface DOMQuad { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var DOMQuad: { @@ -3302,7 +3302,7 @@ interface DOMRectReadOnly { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var DOMRectReadOnly: { @@ -7113,7 +7113,7 @@ interface Performance extends EventTarget { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/toJSON) */ - toJSON(): any; + toJSON(): object; addEventListener(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -7160,7 +7160,7 @@ interface PerformanceEntry { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceEntry: { @@ -7423,7 +7423,7 @@ interface PerformanceResourceTiming extends PerformanceEntry { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceResourceTiming: { @@ -7460,7 +7460,7 @@ interface PerformanceServerTiming { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceServerTiming: { @@ -11102,7 +11102,7 @@ interface WebGLRenderingContextBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getError) */ getError(): GLenum; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getExtension) */ - getExtension(name: string): any; + getExtension(name: string): object | null; getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null; getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null; getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null; @@ -12967,7 +12967,7 @@ interface Console { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static) */ - dir(item?: any, options?: any): void; + dir(item?: any, options?: object | null): void; /** * The **`console.dirxml()`** static method displays an interactive tree of the descendant elements of the specified XML/HTML element. If it is not possible to display as an element the JavaScript Object view is shown instead. The output is presented as a hierarchical listing of expandable nodes that let you see the contents of child nodes. * diff --git a/baselines/ts5.6/webworker.generated.d.ts b/baselines/ts5.6/webworker.generated.d.ts index 7ec31a503..655602125 100644 --- a/baselines/ts5.6/webworker.generated.d.ts +++ b/baselines/ts5.6/webworker.generated.d.ts @@ -3729,7 +3729,7 @@ interface DOMMatrixReadOnly { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toJSON) */ - toJSON(): any; + toJSON(): object; /** * The **`transformPoint`** method of the DOMMatrixReadOnly interface creates a new DOMPoint object, transforming a specified point by the matrix. Neither the matrix nor the original point are altered. * @@ -3851,7 +3851,7 @@ interface DOMPointReadOnly { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var DOMPointReadOnly: { @@ -3906,7 +3906,7 @@ interface DOMQuad { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var DOMQuad: { @@ -4028,7 +4028,7 @@ interface DOMRectReadOnly { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var DOMRectReadOnly: { @@ -8357,7 +8357,7 @@ interface Performance extends EventTarget { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/toJSON) */ - toJSON(): any; + toJSON(): object; addEventListener(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -8404,7 +8404,7 @@ interface PerformanceEntry { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceEntry: { @@ -8667,7 +8667,7 @@ interface PerformanceResourceTiming extends PerformanceEntry { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceResourceTiming: { @@ -8704,7 +8704,7 @@ interface PerformanceServerTiming { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceServerTiming: { @@ -13143,7 +13143,7 @@ interface WebGLRenderingContextBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getError) */ getError(): GLenum; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getExtension) */ - getExtension(name: string): any; + getExtension(name: string): object | null; getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null; getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null; getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null; @@ -15051,7 +15051,7 @@ interface Console { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static) */ - dir(item?: any, options?: any): void; + dir(item?: any, options?: object | null): void; /** * The **`console.dirxml()`** static method displays an interactive tree of the descendant elements of the specified XML/HTML element. If it is not possible to display as an element the JavaScript Object view is shown instead. The output is presented as a hierarchical listing of expandable nodes that let you see the contents of child nodes. * diff --git a/baselines/ts5.9/audioworklet.generated.d.ts b/baselines/ts5.9/audioworklet.generated.d.ts index 047d68b93..29d8fea04 100644 --- a/baselines/ts5.9/audioworklet.generated.d.ts +++ b/baselines/ts5.9/audioworklet.generated.d.ts @@ -1884,7 +1884,7 @@ interface Console { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static) */ - dir(item?: any, options?: any): void; + dir(item?: any, options?: object | null): void; /** * The **`console.dirxml()`** static method displays an interactive tree of the descendant elements of the specified XML/HTML element. If it is not possible to display as an element the JavaScript Object view is shown instead. The output is presented as a hierarchical listing of expandable nodes that let you see the contents of child nodes. * diff --git a/baselines/ts5.9/dom.generated.d.ts b/baselines/ts5.9/dom.generated.d.ts index b0e9af16b..d72f18dda 100644 --- a/baselines/ts5.9/dom.generated.d.ts +++ b/baselines/ts5.9/dom.generated.d.ts @@ -189,7 +189,7 @@ interface AudioWorkletNodeOptions extends AudioNodeOptions { numberOfOutputs?: number; outputChannelCount?: number[]; parameterData?: Record; - processorOptions?: any; + processorOptions?: object; } interface AuthenticationExtensionsClientInputs { @@ -1856,14 +1856,14 @@ interface PaymentDetailsInit extends PaymentDetailsBase { interface PaymentDetailsModifier { additionalDisplayItems?: PaymentItem[]; - data?: any; + data?: object; supportedMethods: string; total?: PaymentItem; } interface PaymentDetailsUpdate extends PaymentDetailsBase { error?: string; - paymentMethodErrors?: any; + paymentMethodErrors?: object; shippingAddressErrors?: AddressErrors; total?: PaymentItem; } @@ -1875,12 +1875,12 @@ interface PaymentItem { } interface PaymentMethodChangeEventInit extends PaymentRequestUpdateEventInit { - methodDetails?: any; + methodDetails?: object | null; methodName?: string; } interface PaymentMethodData { - data?: any; + data?: object; supportedMethods: string; } @@ -12169,7 +12169,7 @@ interface DOMMatrixReadOnly { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toJSON) */ - toJSON(): any; + toJSON(): object; /** * The **`transformPoint`** method of the DOMMatrixReadOnly interface creates a new DOMPoint object, transforming a specified point by the matrix. Neither the matrix nor the original point are altered. * @@ -12314,7 +12314,7 @@ interface DOMPointReadOnly { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var DOMPointReadOnly: { @@ -12369,7 +12369,7 @@ interface DOMQuad { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var DOMQuad: { @@ -12520,7 +12520,7 @@ interface DOMRectReadOnly { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var DOMRectReadOnly: { @@ -12967,9 +12967,9 @@ declare var DeviceOrientationEvent: { /** Available only in secure contexts. */ interface DigitalCredential extends Credential { - readonly data: any; + readonly data: object; readonly protocol: string; - toJSON(): any; + toJSON(): object; } declare var DigitalCredential: { @@ -17116,7 +17116,7 @@ interface GeolocationCoordinates { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var GeolocationCoordinates: { @@ -17148,7 +17148,7 @@ interface GeolocationPosition { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var GeolocationPosition: { @@ -23892,7 +23892,7 @@ interface LargestContentfulPaint extends PerformanceEntry, PaintTimingMixin { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var LargestContentfulPaint: { @@ -24369,7 +24369,7 @@ interface MediaDeviceInfo { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var MediaDeviceInfo: { @@ -27783,7 +27783,7 @@ interface PaymentAddress { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PaymentAddress: { @@ -27803,7 +27803,7 @@ interface PaymentMethodChangeEvent extends PaymentRequestUpdateEvent { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentMethodChangeEvent/methodDetails) */ - readonly methodDetails: any; + readonly methodDetails: object | null; /** * The read-only **`methodName`** property of the PaymentMethodChangeEvent interface is a string which uniquely identifies the payment handler currently selected by the user. The payment handler may be a payment technology, such as Apple Pay or Android Pay, and each payment handler may support multiple payment methods; changes to the payment method within the payment handler are described by the PaymentMethodChangeEvent. * @@ -27936,7 +27936,7 @@ interface PaymentResponse extends EventTarget { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/details) */ - readonly details: any; + readonly details: object; /** * The **`methodName`** read-only property of the PaymentResponse interface returns a string uniquely identifying the payment handler selected by the user. * @@ -27998,7 +27998,7 @@ interface PaymentResponse extends EventTarget { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/toJSON) */ - toJSON(): any; + toJSON(): object; addEventListener(type: K, listener: (this: PaymentResponse, ev: PaymentResponseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: PaymentResponse, ev: PaymentResponseEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -28119,7 +28119,7 @@ interface Performance extends EventTarget { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/toJSON) */ - toJSON(): any; + toJSON(): object; addEventListener(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -28166,7 +28166,7 @@ interface PerformanceEntry { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceEntry: { @@ -28215,7 +28215,7 @@ interface PerformanceEventTiming extends PerformanceEntry { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceEventTiming: { @@ -28288,7 +28288,7 @@ interface PerformanceNavigation { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigation/toJSON) */ - toJSON(): any; + toJSON(): object; readonly TYPE_NAVIGATE: 0; readonly TYPE_RELOAD: 1; readonly TYPE_BACK_FORWARD: 2; @@ -28376,7 +28376,7 @@ interface PerformanceNavigationTiming extends PerformanceResourceTiming { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceNavigationTiming: { @@ -28463,7 +28463,7 @@ interface PerformancePaintTiming extends PerformanceEntry, PaintTimingMixin { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformancePaintTiming/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformancePaintTiming: { @@ -28620,7 +28620,7 @@ interface PerformanceResourceTiming extends PerformanceEntry { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceResourceTiming: { @@ -28657,7 +28657,7 @@ interface PerformanceServerTiming { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceServerTiming: { @@ -28825,7 +28825,7 @@ interface PerformanceTiming { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/toJSON) */ - toJSON(): any; + toJSON(): object; } /** @deprecated */ @@ -30370,7 +30370,7 @@ interface RTCRtpScriptTransform { declare var RTCRtpScriptTransform: { prototype: RTCRtpScriptTransform; - new(workerOrWorkerAndParameters: Worker, options?: any, transfer?: any[]): RTCRtpScriptTransform; + new(workerOrWorkerAndParameters: Worker, options?: any, transfer?: object[]): RTCRtpScriptTransform; }; /** @@ -30585,7 +30585,7 @@ declare var RTCSessionDescription: { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCStatsReport) */ interface RTCStatsReport { - forEach(callbackfn: (value: any, key: string, parent: RTCStatsReport) => void, thisArg?: any): void; + forEach(callbackfn: (value: object, key: string, parent: RTCStatsReport) => void, thisArg?: any): void; } declare var RTCStatsReport: { @@ -40970,7 +40970,7 @@ interface WebGLRenderingContextBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getError) */ getError(): GLenum; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getExtension) */ - getExtension(name: string): any; + getExtension(name: string): object | null; getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null; getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null; getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null; @@ -43685,7 +43685,7 @@ interface Console { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static) */ - dir(item?: any, options?: any): void; + dir(item?: any, options?: object | null): void; /** * The **`console.dirxml()`** static method displays an interactive tree of the descendant elements of the specified XML/HTML element. If it is not possible to display as an element the JavaScript Object view is shown instead. The output is presented as a hierarchical listing of expandable nodes that let you see the contents of child nodes. * diff --git a/baselines/ts5.9/dom.iterable.generated.d.ts b/baselines/ts5.9/dom.iterable.generated.d.ts index ef6162586..6d886c43d 100644 --- a/baselines/ts5.9/dom.iterable.generated.d.ts +++ b/baselines/ts5.9/dom.iterable.generated.d.ts @@ -365,7 +365,7 @@ interface RTCRtpTransceiver { setCodecPreferences(codecs: Iterable): void; } -interface RTCStatsReport extends ReadonlyMap { +interface RTCStatsReport extends ReadonlyMap { } interface SVGLengthList { diff --git a/baselines/ts5.9/serviceworker.generated.d.ts b/baselines/ts5.9/serviceworker.generated.d.ts index 8967aaba6..2395491b8 100644 --- a/baselines/ts5.9/serviceworker.generated.d.ts +++ b/baselines/ts5.9/serviceworker.generated.d.ts @@ -3222,7 +3222,7 @@ interface DOMMatrixReadOnly { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toJSON) */ - toJSON(): any; + toJSON(): object; /** * The **`transformPoint`** method of the DOMMatrixReadOnly interface creates a new DOMPoint object, transforming a specified point by the matrix. Neither the matrix nor the original point are altered. * @@ -3344,7 +3344,7 @@ interface DOMPointReadOnly { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var DOMPointReadOnly: { @@ -3399,7 +3399,7 @@ interface DOMQuad { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var DOMQuad: { @@ -3521,7 +3521,7 @@ interface DOMRectReadOnly { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var DOMRectReadOnly: { @@ -7455,7 +7455,7 @@ interface Performance extends EventTarget { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/toJSON) */ - toJSON(): any; + toJSON(): object; addEventListener(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -7502,7 +7502,7 @@ interface PerformanceEntry { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceEntry: { @@ -7765,7 +7765,7 @@ interface PerformanceResourceTiming extends PerformanceEntry { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceResourceTiming: { @@ -7802,7 +7802,7 @@ interface PerformanceServerTiming { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceServerTiming: { @@ -11559,7 +11559,7 @@ interface WebGLRenderingContextBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getError) */ getError(): GLenum; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getExtension) */ - getExtension(name: string): any; + getExtension(name: string): object | null; getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null; getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null; getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null; @@ -13241,7 +13241,7 @@ interface Console { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static) */ - dir(item?: any, options?: any): void; + dir(item?: any, options?: object | null): void; /** * The **`console.dirxml()`** static method displays an interactive tree of the descendant elements of the specified XML/HTML element. If it is not possible to display as an element the JavaScript Object view is shown instead. The output is presented as a hierarchical listing of expandable nodes that let you see the contents of child nodes. * diff --git a/baselines/ts5.9/sharedworker.generated.d.ts b/baselines/ts5.9/sharedworker.generated.d.ts index 5606b402f..5d4821105 100644 --- a/baselines/ts5.9/sharedworker.generated.d.ts +++ b/baselines/ts5.9/sharedworker.generated.d.ts @@ -3003,7 +3003,7 @@ interface DOMMatrixReadOnly { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toJSON) */ - toJSON(): any; + toJSON(): object; /** * The **`transformPoint`** method of the DOMMatrixReadOnly interface creates a new DOMPoint object, transforming a specified point by the matrix. Neither the matrix nor the original point are altered. * @@ -3125,7 +3125,7 @@ interface DOMPointReadOnly { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var DOMPointReadOnly: { @@ -3180,7 +3180,7 @@ interface DOMQuad { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var DOMQuad: { @@ -3302,7 +3302,7 @@ interface DOMRectReadOnly { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var DOMRectReadOnly: { @@ -7113,7 +7113,7 @@ interface Performance extends EventTarget { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/toJSON) */ - toJSON(): any; + toJSON(): object; addEventListener(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -7160,7 +7160,7 @@ interface PerformanceEntry { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceEntry: { @@ -7423,7 +7423,7 @@ interface PerformanceResourceTiming extends PerformanceEntry { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceResourceTiming: { @@ -7460,7 +7460,7 @@ interface PerformanceServerTiming { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceServerTiming: { @@ -11102,7 +11102,7 @@ interface WebGLRenderingContextBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getError) */ getError(): GLenum; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getExtension) */ - getExtension(name: string): any; + getExtension(name: string): object | null; getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null; getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null; getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null; @@ -12967,7 +12967,7 @@ interface Console { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static) */ - dir(item?: any, options?: any): void; + dir(item?: any, options?: object | null): void; /** * The **`console.dirxml()`** static method displays an interactive tree of the descendant elements of the specified XML/HTML element. If it is not possible to display as an element the JavaScript Object view is shown instead. The output is presented as a hierarchical listing of expandable nodes that let you see the contents of child nodes. * diff --git a/baselines/ts5.9/webworker.generated.d.ts b/baselines/ts5.9/webworker.generated.d.ts index 2b8ecf103..feaa1a14c 100644 --- a/baselines/ts5.9/webworker.generated.d.ts +++ b/baselines/ts5.9/webworker.generated.d.ts @@ -3729,7 +3729,7 @@ interface DOMMatrixReadOnly { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toJSON) */ - toJSON(): any; + toJSON(): object; /** * The **`transformPoint`** method of the DOMMatrixReadOnly interface creates a new DOMPoint object, transforming a specified point by the matrix. Neither the matrix nor the original point are altered. * @@ -3851,7 +3851,7 @@ interface DOMPointReadOnly { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var DOMPointReadOnly: { @@ -3906,7 +3906,7 @@ interface DOMQuad { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var DOMQuad: { @@ -4028,7 +4028,7 @@ interface DOMRectReadOnly { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var DOMRectReadOnly: { @@ -8357,7 +8357,7 @@ interface Performance extends EventTarget { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/toJSON) */ - toJSON(): any; + toJSON(): object; addEventListener(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -8404,7 +8404,7 @@ interface PerformanceEntry { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceEntry: { @@ -8667,7 +8667,7 @@ interface PerformanceResourceTiming extends PerformanceEntry { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceResourceTiming: { @@ -8704,7 +8704,7 @@ interface PerformanceServerTiming { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceServerTiming: { @@ -13143,7 +13143,7 @@ interface WebGLRenderingContextBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getError) */ getError(): GLenum; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getExtension) */ - getExtension(name: string): any; + getExtension(name: string): object | null; getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null; getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null; getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null; @@ -15051,7 +15051,7 @@ interface Console { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static) */ - dir(item?: any, options?: any): void; + dir(item?: any, options?: object | null): void; /** * The **`console.dirxml()`** static method displays an interactive tree of the descendant elements of the specified XML/HTML element. If it is not possible to display as an element the JavaScript Object view is shown instead. The output is presented as a hierarchical listing of expandable nodes that let you see the contents of child nodes. * diff --git a/baselines/webworker.generated.d.ts b/baselines/webworker.generated.d.ts index 0596b83b3..7ca2a853c 100644 --- a/baselines/webworker.generated.d.ts +++ b/baselines/webworker.generated.d.ts @@ -3732,7 +3732,7 @@ interface DOMMatrixReadOnly { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toJSON) */ - toJSON(): any; + toJSON(): object; /** * The **`transformPoint`** method of the DOMMatrixReadOnly interface creates a new DOMPoint object, transforming a specified point by the matrix. Neither the matrix nor the original point are altered. * @@ -3854,7 +3854,7 @@ interface DOMPointReadOnly { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var DOMPointReadOnly: { @@ -3909,7 +3909,7 @@ interface DOMQuad { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var DOMQuad: { @@ -4031,7 +4031,7 @@ interface DOMRectReadOnly { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var DOMRectReadOnly: { @@ -8360,7 +8360,7 @@ interface Performance extends EventTarget { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/toJSON) */ - toJSON(): any; + toJSON(): object; addEventListener(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; @@ -8407,7 +8407,7 @@ interface PerformanceEntry { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceEntry: { @@ -8670,7 +8670,7 @@ interface PerformanceResourceTiming extends PerformanceEntry { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceResourceTiming: { @@ -8707,7 +8707,7 @@ interface PerformanceServerTiming { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/toJSON) */ - toJSON(): any; + toJSON(): object; } declare var PerformanceServerTiming: { @@ -13146,7 +13146,7 @@ interface WebGLRenderingContextBase { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getError) */ getError(): GLenum; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getExtension) */ - getExtension(name: string): any; + getExtension(name: string): object | null; getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null; getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null; getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null; @@ -15054,7 +15054,7 @@ interface Console { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static) */ - dir(item?: any, options?: any): void; + dir(item?: any, options?: object | null): void; /** * The **`console.dirxml()`** static method displays an interactive tree of the descendant elements of the specified XML/HTML element. If it is not possible to display as an element the JavaScript Object view is shown instead. The output is presented as a hierarchical listing of expandable nodes that let you see the contents of child nodes. * diff --git a/src/build/helpers.ts b/src/build/helpers.ts index bb3a476ea..910710907 100644 --- a/src/build/helpers.ts +++ b/src/build/helpers.ts @@ -57,6 +57,7 @@ const sameTypes = new Set([ "undefined", "void", "bigint", + "object", ]); export const baseTypeConversionMap = new Map([ ...[...bufferSourceTypes].map((type) => [type, type] as const), @@ -65,7 +66,6 @@ export const baseTypeConversionMap = new Map([ (type) => [type, "string"] as const, ), ...[...sameTypes].map((type) => [type, type] as const), - ["object", "any"], ["sequence", "Array"], ["ObservableArray", "Array"], ["record", "Record"],