mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 15:50:13 +00:00
webcomponents.js: Fix compatibility with lib.dom (#27796)
This commit is contained in:
2
types/webcomponents.js/index.d.ts
vendored
2
types/webcomponents.js/index.d.ts
vendored
@@ -36,7 +36,7 @@ export interface Polyfill {
|
||||
declare global {
|
||||
// This contains duplicates of some types in lib.dom.d.ts in order to support typescript 2.0
|
||||
interface ElementDefinitionOptions {
|
||||
extends: string;
|
||||
extends?: string;
|
||||
}
|
||||
|
||||
interface ShadowRoot extends DocumentFragment {
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
"dom"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": false,
|
||||
"strictNullChecks": false,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
|
||||
@@ -16,7 +16,7 @@ const XFoo = document.registerElement("x-foo", {
|
||||
|
||||
const xFoo = new XFoo();
|
||||
xFoo.textContent = "";
|
||||
document.body.appendChild(xFoo);
|
||||
document.body!.appendChild(xFoo);
|
||||
|
||||
window.CustomElements.hasNative;
|
||||
window.CustomElements.flags;
|
||||
|
||||
Reference in New Issue
Block a user