Skip to content

Commit f915ac0

Browse files
Bashamegasaschanaz
andauthored
Support for multiple method signatures (#2227)
Co-authored-by: Kagami Sascha Rosylight <[email protected]>
1 parent 89714d0 commit f915ac0

20 files changed

+202
-57
lines changed

baselines/dom.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37998,6 +37998,7 @@ interface WebGLRenderingContextBase {
3799837998
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getError) */
3799937999
getError(): GLenum;
3800038000
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getExtension) */
38001+
getExtension(name: string): any;
3800138002
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
3800238003
getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;
3800338004
getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;
@@ -38032,7 +38033,6 @@ interface WebGLRenderingContextBase {
3803238033
getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
3803338034
getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;
3803438035
getExtension(extensionName: "WEBGL_multi_draw"): WEBGL_multi_draw | null;
38035-
getExtension(name: string): any;
3803638036
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getFramebufferAttachmentParameter) */
3803738037
getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
3803838038
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getParameter) */

baselines/serviceworker.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9856,6 +9856,7 @@ interface WebGLRenderingContextBase {
98569856
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getError) */
98579857
getError(): GLenum;
98589858
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getExtension) */
9859+
getExtension(name: string): any;
98599860
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
98609861
getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;
98619862
getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;
@@ -9890,7 +9891,6 @@ interface WebGLRenderingContextBase {
98909891
getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
98919892
getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;
98929893
getExtension(extensionName: "WEBGL_multi_draw"): WEBGL_multi_draw | null;
9893-
getExtension(name: string): any;
98949894
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getFramebufferAttachmentParameter) */
98959895
getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
98969896
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getParameter) */

baselines/sharedworker.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9393,6 +9393,7 @@ interface WebGLRenderingContextBase {
93939393
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getError) */
93949394
getError(): GLenum;
93959395
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getExtension) */
9396+
getExtension(name: string): any;
93969397
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
93979398
getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;
93989399
getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;
@@ -9427,7 +9428,6 @@ interface WebGLRenderingContextBase {
94279428
getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
94289429
getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;
94299430
getExtension(extensionName: "WEBGL_multi_draw"): WEBGL_multi_draw | null;
9430-
getExtension(name: string): any;
94319431
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getFramebufferAttachmentParameter) */
94329432
getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
94339433
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getParameter) */

baselines/ts5.5/dom.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37972,6 +37972,7 @@ interface WebGLRenderingContextBase {
3797237972
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getError) */
3797337973
getError(): GLenum;
3797437974
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getExtension) */
37975+
getExtension(name: string): any;
3797537976
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
3797637977
getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;
3797737978
getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;
@@ -38006,7 +38007,6 @@ interface WebGLRenderingContextBase {
3800638007
getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
3800738008
getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;
3800838009
getExtension(extensionName: "WEBGL_multi_draw"): WEBGL_multi_draw | null;
38009-
getExtension(name: string): any;
3801038010
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getFramebufferAttachmentParameter) */
3801138011
getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
3801238012
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getParameter) */

baselines/ts5.5/serviceworker.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9853,6 +9853,7 @@ interface WebGLRenderingContextBase {
98539853
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getError) */
98549854
getError(): GLenum;
98559855
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getExtension) */
9856+
getExtension(name: string): any;
98569857
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
98579858
getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;
98589859
getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;
@@ -9887,7 +9888,6 @@ interface WebGLRenderingContextBase {
98879888
getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
98889889
getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;
98899890
getExtension(extensionName: "WEBGL_multi_draw"): WEBGL_multi_draw | null;
9890-
getExtension(name: string): any;
98919891
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getFramebufferAttachmentParameter) */
98929892
getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
98939893
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getParameter) */

baselines/ts5.5/sharedworker.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9390,6 +9390,7 @@ interface WebGLRenderingContextBase {
93909390
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getError) */
93919391
getError(): GLenum;
93929392
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getExtension) */
9393+
getExtension(name: string): any;
93939394
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
93949395
getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;
93959396
getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;
@@ -9424,7 +9425,6 @@ interface WebGLRenderingContextBase {
94249425
getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
94259426
getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;
94269427
getExtension(extensionName: "WEBGL_multi_draw"): WEBGL_multi_draw | null;
9427-
getExtension(name: string): any;
94289428
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getFramebufferAttachmentParameter) */
94299429
getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
94309430
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getParameter) */

baselines/ts5.5/webworker.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11297,6 +11297,7 @@ interface WebGLRenderingContextBase {
1129711297
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getError) */
1129811298
getError(): GLenum;
1129911299
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getExtension) */
11300+
getExtension(name: string): any;
1130011301
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
1130111302
getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;
1130211303
getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;
@@ -11331,7 +11332,6 @@ interface WebGLRenderingContextBase {
1133111332
getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
1133211333
getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;
1133311334
getExtension(extensionName: "WEBGL_multi_draw"): WEBGL_multi_draw | null;
11334-
getExtension(name: string): any;
1133511335
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getFramebufferAttachmentParameter) */
1133611336
getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
1133711337
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getParameter) */

baselines/ts5.6/dom.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37995,6 +37995,7 @@ interface WebGLRenderingContextBase {
3799537995
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getError) */
3799637996
getError(): GLenum;
3799737997
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getExtension) */
37998+
getExtension(name: string): any;
3799837999
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
3799938000
getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;
3800038001
getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;
@@ -38029,7 +38030,6 @@ interface WebGLRenderingContextBase {
3802938030
getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
3803038031
getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;
3803138032
getExtension(extensionName: "WEBGL_multi_draw"): WEBGL_multi_draw | null;
38032-
getExtension(name: string): any;
3803338033
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getFramebufferAttachmentParameter) */
3803438034
getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
3803538035
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getParameter) */

baselines/ts5.6/serviceworker.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9853,6 +9853,7 @@ interface WebGLRenderingContextBase {
98539853
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getError) */
98549854
getError(): GLenum;
98559855
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getExtension) */
9856+
getExtension(name: string): any;
98569857
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
98579858
getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;
98589859
getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;
@@ -9887,7 +9888,6 @@ interface WebGLRenderingContextBase {
98879888
getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
98889889
getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;
98899890
getExtension(extensionName: "WEBGL_multi_draw"): WEBGL_multi_draw | null;
9890-
getExtension(name: string): any;
98919891
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getFramebufferAttachmentParameter) */
98929892
getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
98939893
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getParameter) */

baselines/ts5.6/sharedworker.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9390,6 +9390,7 @@ interface WebGLRenderingContextBase {
93909390
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getError) */
93919391
getError(): GLenum;
93929392
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getExtension) */
9393+
getExtension(name: string): any;
93939394
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
93949395
getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;
93959396
getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;
@@ -9424,7 +9425,6 @@ interface WebGLRenderingContextBase {
94249425
getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
94259426
getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;
94269427
getExtension(extensionName: "WEBGL_multi_draw"): WEBGL_multi_draw | null;
9427-
getExtension(name: string): any;
94289428
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getFramebufferAttachmentParameter) */
94299429
getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
94309430
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getParameter) */

0 commit comments

Comments
 (0)