Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion baselines/audioworklet.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ interface Event {
*/
readonly eventPhase: number;
/**
* The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The only exception is the click event, which initializes the isTrusted property to false in user agents.
* The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted)
*/
Expand Down Expand Up @@ -831,6 +831,18 @@ declare var MessagePort: {
new(): MessagePort;
};

interface Origin {
readonly opaque: boolean;
isSameOrigin(other: Origin): boolean;
isSameSite(other: Origin): boolean;
}

declare var Origin: {
prototype: Origin;
new(): Origin;
from(value: any): Origin;
};

/**
* The **`PromiseRejectionEvent`** interface represents events which are sent to the global script context when JavaScript Promises are rejected. These events are particularly useful for telemetry and debugging purposes.
*
Expand Down
106 changes: 82 additions & 24 deletions baselines/dom.generated.d.ts

Large diffs are not rendered by default.

52 changes: 45 additions & 7 deletions baselines/serviceworker.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1560,9 +1560,29 @@ declare var CSSKeywordValue: {
new(value: string): CSSKeywordValue;
};

/**
* The **`CSSMathClamp`** interface of the CSS Typed Object Model API represents the CSS clamp() function. It inherits properties and methods from its parent CSSNumericValue.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp)
*/
interface CSSMathClamp extends CSSMathValue {
/**
* The **`lower`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the minimum value of a CSSMathClamp object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/lower)
*/
readonly lower: CSSNumericValue;
/**
* The **`upper`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the maximum value of a CSSMathClamp object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/upper)
*/
readonly upper: CSSNumericValue;
/**
* The **`value`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the preferred value of a CSSMathClamp object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/value)
*/
readonly value: CSSNumericValue;
}

Expand Down Expand Up @@ -2073,13 +2093,13 @@ declare var CSSTranslate: {
};

/**
* The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type. For example, "42px" would be represented by a CSSNumericValue.
* The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue)
*/
interface CSSUnitValue extends CSSNumericValue {
/**
* The **`CSSUnitValue.unit`** read-only property of the CSSUnitValue interface returns a string indicating the type of unit.
* The **`CSSUnitValue.unit`** read-only property of the CSSUnitValue interface returns a string indicating the unit type.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit)
*/
Expand Down Expand Up @@ -3736,7 +3756,7 @@ interface Event {
*/
readonly eventPhase: number;
/**
* The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The only exception is the click event, which initializes the isTrusted property to false in user agents.
* The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted)
*/
Expand Down Expand Up @@ -7236,7 +7256,7 @@ interface OffscreenCanvas extends EventTarget {
getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null;
getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;
/**
* The **`OffscreenCanvas.transferToImageBitmap()`** method creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The OffscreenCanvas allocates a new image for its subsequent rendering.
* The **`transferToImageBitmap()`** method of the OffscreenCanvas interface creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The image in the OffscreenCanvas is replaced with a new blank image for subsequent rendering.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap)
*/
Expand Down Expand Up @@ -7267,6 +7287,18 @@ declare var OffscreenCanvasRenderingContext2D: {
new(): OffscreenCanvasRenderingContext2D;
};

interface Origin {
readonly opaque: boolean;
isSameOrigin(other: Origin): boolean;
isSameSite(other: Origin): boolean;
}

declare var Origin: {
prototype: Origin;
new(): Origin;
from(value: any): Origin;
};

/**
* The **`Path2D`** interface of the Canvas 2D API is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired.
*
Expand Down Expand Up @@ -7548,6 +7580,12 @@ interface PerformanceResourceTiming extends PerformanceEntry {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart)
*/
readonly connectStart: DOMHighResTimeStamp;
/**
* The **`contentType`** read-only property of the PerformanceResourceTiming interface is a string indicating the content type of the fetched resource, formatted as a MIME type and subtype separated by a forward slash.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/contentType)
*/
readonly contentType: string;
/**
* The **`decodedBodySize`** read-only property returns the size (in octets) received from the fetch (HTTP or cache) of the message body after removing any applied content encoding (like gzip or Brotli). If the resource is retrieved from an application cache or local resources, it returns the size of the payload after removing any applied content encoding.
*
Expand Down Expand Up @@ -8490,7 +8528,7 @@ interface SecurityPolicyViolationEvent extends Event {
*/
readonly blockedURI: string;
/**
* The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the column number in the document or worker script at which the Content Security Policy (CSP) violation occurred.
* The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the character position in the source file line of the document or worker script at which the Content Security Policy (CSP) violation occurred.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber)
*/
Expand Down Expand Up @@ -9784,13 +9822,13 @@ interface WEBGL_draw_buffers {
*/
interface WEBGL_lose_context {
/**
* The **`WEBGL_lose_context.loseContext()`** method is part of the WebGL API and allows you to simulate losing the context of a WebGLRenderingContext context.
* The **`loseContext()`** method of the WEBGL_lose_context extension is part of the WebGL API and allows you to simulate losing the context of a WebGLRenderingContext.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/loseContext)
*/
loseContext(): void;
/**
* The **`WEBGL_lose_context.restoreContext()`** method is part of the WebGL API and allows you to simulate restoring the context of a WebGLRenderingContext object.
* The **`restoreContext()`** method of the WEBGL_lose_context extension is part of the WebGL API and allows you to simulate restoring the context of a WebGLRenderingContext.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/restoreContext)
*/
Expand Down
52 changes: 45 additions & 7 deletions baselines/sharedworker.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1496,9 +1496,29 @@ declare var CSSKeywordValue: {
new(value: string): CSSKeywordValue;
};

/**
* The **`CSSMathClamp`** interface of the CSS Typed Object Model API represents the CSS clamp() function. It inherits properties and methods from its parent CSSNumericValue.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp)
*/
interface CSSMathClamp extends CSSMathValue {
/**
* The **`lower`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the minimum value of a CSSMathClamp object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/lower)
*/
readonly lower: CSSNumericValue;
/**
* The **`upper`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the maximum value of a CSSMathClamp object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/upper)
*/
readonly upper: CSSNumericValue;
/**
* The **`value`** read-only property of the CSSMathClamp interface returns a CSSNumericValue object containing the preferred value of a CSSMathClamp object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathClamp/value)
*/
readonly value: CSSNumericValue;
}

Expand Down Expand Up @@ -2009,13 +2029,13 @@ declare var CSSTranslate: {
};

/**
* The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type. For example, "42px" would be represented by a CSSNumericValue.
* The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue)
*/
interface CSSUnitValue extends CSSNumericValue {
/**
* The **`CSSUnitValue.unit`** read-only property of the CSSUnitValue interface returns a string indicating the type of unit.
* The **`CSSUnitValue.unit`** read-only property of the CSSUnitValue interface returns a string indicating the unit type.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit)
*/
Expand Down Expand Up @@ -3517,7 +3537,7 @@ interface Event {
*/
readonly eventPhase: number;
/**
* The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The only exception is the click event, which initializes the isTrusted property to false in user agents.
* The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted)
*/
Expand Down Expand Up @@ -6894,7 +6914,7 @@ interface OffscreenCanvas extends EventTarget {
getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null;
getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;
/**
* The **`OffscreenCanvas.transferToImageBitmap()`** method creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The OffscreenCanvas allocates a new image for its subsequent rendering.
* The **`transferToImageBitmap()`** method of the OffscreenCanvas interface creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The image in the OffscreenCanvas is replaced with a new blank image for subsequent rendering.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap)
*/
Expand Down Expand Up @@ -6925,6 +6945,18 @@ declare var OffscreenCanvasRenderingContext2D: {
new(): OffscreenCanvasRenderingContext2D;
};

interface Origin {
readonly opaque: boolean;
isSameOrigin(other: Origin): boolean;
isSameSite(other: Origin): boolean;
}

declare var Origin: {
prototype: Origin;
new(): Origin;
from(value: any): Origin;
};

/**
* The **`Path2D`** interface of the Canvas 2D API is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired.
*
Expand Down Expand Up @@ -7206,6 +7238,12 @@ interface PerformanceResourceTiming extends PerformanceEntry {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart)
*/
readonly connectStart: DOMHighResTimeStamp;
/**
* The **`contentType`** read-only property of the PerformanceResourceTiming interface is a string indicating the content type of the fetched resource, formatted as a MIME type and subtype separated by a forward slash.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/contentType)
*/
readonly contentType: string;
/**
* The **`decodedBodySize`** read-only property returns the size (in octets) received from the fetch (HTTP or cache) of the message body after removing any applied content encoding (like gzip or Brotli). If the resource is retrieved from an application cache or local resources, it returns the size of the payload after removing any applied content encoding.
*
Expand Down Expand Up @@ -8073,7 +8111,7 @@ interface SecurityPolicyViolationEvent extends Event {
*/
readonly blockedURI: string;
/**
* The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the column number in the document or worker script at which the Content Security Policy (CSP) violation occurred.
* The **`columnNumber`** read-only property of the SecurityPolicyViolationEvent interface is the character position in the source file line of the document or worker script at which the Content Security Policy (CSP) violation occurred.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber)
*/
Expand Down Expand Up @@ -9327,13 +9365,13 @@ interface WEBGL_draw_buffers {
*/
interface WEBGL_lose_context {
/**
* The **`WEBGL_lose_context.loseContext()`** method is part of the WebGL API and allows you to simulate losing the context of a WebGLRenderingContext context.
* The **`loseContext()`** method of the WEBGL_lose_context extension is part of the WebGL API and allows you to simulate losing the context of a WebGLRenderingContext.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/loseContext)
*/
loseContext(): void;
/**
* The **`WEBGL_lose_context.restoreContext()`** method is part of the WebGL API and allows you to simulate restoring the context of a WebGLRenderingContext object.
* The **`restoreContext()`** method of the WEBGL_lose_context extension is part of the WebGL API and allows you to simulate restoring the context of a WebGLRenderingContext.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/restoreContext)
*/
Expand Down
14 changes: 13 additions & 1 deletion baselines/ts5.5/audioworklet.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ interface Event {
*/
readonly eventPhase: number;
/**
* The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The only exception is the click event, which initializes the isTrusted property to false in user agents.
* The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The click event fired through HTMLElement.click() sets the isTrusted property to false.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted)
*/
Expand Down Expand Up @@ -828,6 +828,18 @@ declare var MessagePort: {
new(): MessagePort;
};

interface Origin {
readonly opaque: boolean;
isSameOrigin(other: Origin): boolean;
isSameSite(other: Origin): boolean;
}

declare var Origin: {
prototype: Origin;
new(): Origin;
from(value: any): Origin;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is so sadly typed. In reality it does change the return value depending on the parameter type.

};

/**
* The **`PromiseRejectionEvent`** interface represents events which are sent to the global script context when JavaScript Promises are rejected. These events are particularly useful for telemetry and debugging purposes.
*
Expand Down
Loading
Loading