Skip to content

Commit 4a32410

Browse files
authored
customElement.define's 2nd param is construct sig (#815)
Previously it was a call signature, but this is not correct.
1 parent 2c0a872 commit 4a32410

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

baselines/dom.generated.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -19255,7 +19255,7 @@ interface BlobCallback {
1925519255
}
1925619256

1925719257
interface CustomElementConstructor {
19258-
(): HTMLElement;
19258+
new (): HTMLElement;
1925919259
}
1926019260

1926119261
interface DecodeErrorCallback {

inputfiles/overridingTypes.json

+5
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,11 @@
311311
"override-signatures": [
312312
"(chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>"
313313
]
314+
},
315+
"CustomElementConstructor": {
316+
"override-signatures": [
317+
"new (): HTMLElement"
318+
]
314319
}
315320
}
316321
},

0 commit comments

Comments
 (0)