webcomponents.js: Add typings for Shadow DOM (#10345)

This commit is contained in:
Michael Matloob
2016-07-29 21:13:29 -07:00
committed by Yui
parent e41c10f1a3
commit 33f79e40b1
+2 -2
View File
@@ -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 {