Skip to content

Commit e763b43

Browse files
committed
Updated overloads that only differ in return type
1 parent 7770fbb commit e763b43

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Diff for: src/lib/dom.generated.d.ts

+3-5
Original file line numberDiff line numberDiff line change
@@ -2464,8 +2464,7 @@ interface Document extends Node, GlobalEventHandlers, NodeSelector, DocumentEven
24642464
* @param features Contains a list of items separated by commas. Each item consists of an option and a value, separated by an equals sign (for example, "fullscreen=yes, toolbar=yes"). The following values are supported.
24652465
* @param replace Specifies whether the existing entry for the document is replaced in the history list.
24662466
*/
2467-
open(url?: string, name?: string, features?: string, replace?: boolean): Document;
2468-
open(url?: string, name?: string, features?: string, replace?: boolean): Window;
2467+
open(url?: string, name?: string, features?: string, replace?: boolean): Document | Window;
24692468
/**
24702469
* Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document.
24712470
* @param commandId Specifies a command identifier.
@@ -3698,8 +3697,7 @@ interface HTMLCanvasElement extends HTMLElement {
36983697
* Returns an object that provides methods and properties for drawing and manipulating images and graphics on a canvas element in a document. A context object includes information about colors, line widths, fonts, and other graphic parameters that can be drawn on a canvas.
36993698
* @param contextId The identifier (ID) of the type of canvas to create. Internet Explorer 9 and Internet Explorer 10 support only a 2-D context using canvas.getContext("2d"); IE11 Preview also supports 3-D or WebGL context using canvas.getContext("experimental-webgl");
37003699
*/
3701-
getContext(contextId: string, ...args: any[]): CanvasRenderingContext2D;
3702-
getContext(contextId: string, ...args: any[]): WebGLRenderingContext;
3700+
getContext(contextId: string, ...args: any[]): CanvasRenderingContext2D | WebGLRenderingContext;
37033701
/**
37043702
* Returns a blob object encoded as a Portable Network Graphics (PNG) format from a canvas image or drawing.
37053703
*/
@@ -5046,7 +5044,7 @@ interface HTMLInputElement extends HTMLElement {
50465044
* Returns the value of the data at the cursor's current position.
50475045
*/
50485046
value: string;
5049-
valueAsDate: any;
5047+
valueAsDate: Date;
50505048
/**
50515049
* Returns the input field value as a number.
50525050
*/

0 commit comments

Comments
 (0)