mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-30 12:50:40 +08:00
Add custom element constructor definition
This commit is contained in:
1 parent
ac3a1f059f
commit
4cfb34b702
2 files changed
+8
-2
No files matched your search
+5
-1
@@ -10,6 +10,10 @@ declare module webcomponents {
|
||||
extends?: string;
|
||||
}
|
||||
|
||||
export interface CustomElementConstructor {
|
||||
new():HTMLElement;
|
||||
}
|
||||
|
||||
export interface CustomElementsPolyfill {
|
||||
hasNative: boolean;
|
||||
flags: any;
|
||||
@@ -38,7 +42,7 @@ declare module "webcomponents.js" {
|
||||
}
|
||||
|
||||
interface Document {
|
||||
registerElement(name: string, prototype: webcomponents.CustomElementInit): void;
|
||||
registerElement(name: string, prototype: webcomponents.CustomElementInit): webcomponents.CustomElementConstructor;
|
||||
}
|
||||
|
||||
interface Window {
|
||||
|
||||
Reference in new issue
Block a user