mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 04:01:52 +00:00
react-shadow-dom-retarget-events: update tests
Typescript 3.8 has a stricter type for customElements.define, so I updated the tests to match the type.
This commit is contained in:
@@ -19,4 +19,4 @@ class MyCustomElement extends HTMLElement {
|
||||
}
|
||||
}
|
||||
|
||||
customElements.define(name, MyCustomElement);
|
||||
customElements.define(name, () => new MyCustomElement());
|
||||
|
||||
Reference in New Issue
Block a user