Skip to content

Commit 820ea2f

Browse files
committed
Upstream cl/397127984
1 parent 4756d22 commit 820ea2f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/custom-elements/ts_src/CustomElementInternals.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ export default class CustomElementInternals {
413413
return;
414414
}
415415

416-
return (registry as CustomElementRegistry).internal_localNameToDefinition(
416+
return (registry as any as CustomElementRegistry).internal_localNameToDefinition(
417417
localName
418418
);
419419
}
@@ -436,7 +436,7 @@ export default class CustomElementInternals {
436436
// Only create custom elements if the document is associated with a
437437
// registry.
438438
if (registry && (namespace === null || namespace === NS_HTML)) {
439-
const definition = (registry as CustomElementRegistry).internal_localNameToDefinition(
439+
const definition = (registry as any as CustomElementRegistry).internal_localNameToDefinition(
440440
localName
441441
);
442442
if (definition) {

packages/custom-elements/ts_src/Patch/HTMLElement.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default function (internals: CustomElementInternals) {
2525

2626
// Always look up the definition from the global registry.
2727
const registry = document.__CE_registry!;
28-
const definition = (registry as CustomElementRegistry).internal_constructorToDefinition(
28+
const definition = (registry as any as CustomElementRegistry).internal_constructorToDefinition(
2929
constructor
3030
);
3131
if (!definition) {

packages/custom-elements/ts_src/custom-elements.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function installPolyfill() {
4343
const customElements = new CustomElementRegistry(internals);
4444

4545
// The main document is associated with the global registry.
46-
document.__CE_registry = customElements;
46+
document.__CE_registry = customElements as any;
4747

4848
Object.defineProperty(window, 'customElements', {
4949
configurable: true,

0 commit comments

Comments
 (0)