mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 11:02:11 +08:00
Fix webcomponents.js.d.ts and test
This commit is contained in:
@@ -15,6 +15,8 @@ var XFoo = document.registerElement("x-foo", {
|
||||
});
|
||||
|
||||
var xFoo = new XFoo();
|
||||
xFoo.textContent = "";
|
||||
document.body.appendChild(xFoo);
|
||||
|
||||
window.CustomElements.hasNative;
|
||||
window.CustomElements.flags;
|
||||
|
||||
2
webcomponents.js/webcomponents.js.d.ts
vendored
2
webcomponents.js/webcomponents.js.d.ts
vendored
@@ -11,7 +11,7 @@ declare module webcomponents {
|
||||
}
|
||||
|
||||
export interface CustomElementConstructor {
|
||||
new():HTMLElement;
|
||||
new(): HTMLElement;
|
||||
}
|
||||
|
||||
export interface CustomElementsPolyfill {
|
||||
|
||||
Reference in New Issue
Block a user