File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
packages/custom-elements/ts_src Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -413,7 +413,7 @@ export default class CustomElementInternals {
413
413
return ;
414
414
}
415
415
416
- return ( registry as CustomElementRegistry ) . internal_localNameToDefinition (
416
+ return ( registry as any as CustomElementRegistry ) . internal_localNameToDefinition (
417
417
localName
418
418
) ;
419
419
}
@@ -436,7 +436,7 @@ export default class CustomElementInternals {
436
436
// Only create custom elements if the document is associated with a
437
437
// registry.
438
438
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 (
440
440
localName
441
441
) ;
442
442
if ( definition ) {
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ export default function (internals: CustomElementInternals) {
25
25
26
26
// Always look up the definition from the global registry.
27
27
const registry = document . __CE_registry ! ;
28
- const definition = ( registry as CustomElementRegistry ) . internal_constructorToDefinition (
28
+ const definition = ( registry as any as CustomElementRegistry ) . internal_constructorToDefinition (
29
29
constructor
30
30
) ;
31
31
if ( ! definition ) {
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ function installPolyfill() {
43
43
const customElements = new CustomElementRegistry ( internals ) ;
44
44
45
45
// The main document is associated with the global registry.
46
- document . __CE_registry = customElements ;
46
+ document . __CE_registry = customElements as any ;
47
47
48
48
Object . defineProperty ( window , 'customElements' , {
49
49
configurable : true ,
You can’t perform that action at this time.
0 commit comments