chore(webapi): fix types (#3167)

This commit is contained in:
Nate Moore 2022-04-21 13:54:26 -05:00 committed by GitHub
parent bd66527e7d
commit f73d33cb18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,7 +8,7 @@ export class Element extends Node {
const internals = _.internalsOf(new.target, 'Element', 'localName')
_.INTERNALS.set(this, {
attributes: {},
localName: internals.localName,
localName: (internals as unknown as Element).localName,
ownerDocument: this.ownerDocument,
shadowInit: null as unknown as ShadowRootInit,
shadowRoot: null as unknown as ShadowRoot,