mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 21:10:23 +00:00
webcomponents.js: Add typings for Shadow DOM (#10345)
This commit is contained in:
Vendored
+2
-2
@@ -33,7 +33,7 @@ declare namespace webcomponents {
|
||||
|
||||
export interface ShadowRootPolyfill extends DocumentFragment {
|
||||
innerHTML: string;
|
||||
host: Element;
|
||||
readonly host: Element;
|
||||
}
|
||||
|
||||
export interface Polyfill {
|
||||
@@ -48,7 +48,7 @@ declare module "webcomponents.js" {
|
||||
|
||||
interface Element {
|
||||
createShadowRoot(): webcomponents.ShadowRootPolyfill;
|
||||
shadowRoot?: webcomponents.ShadowRootPolyfill;
|
||||
readonly shadowRoot?: webcomponents.ShadowRootPolyfill;
|
||||
}
|
||||
|
||||
interface Document {
|
||||
|
||||
Reference in New Issue
Block a user