feat(elements): implement NgElementConstructor
This commit is contained in:
committed by
Victor Berchet
parent
aed4a11d01
commit
0899f4f8fc
@@ -11,6 +11,14 @@ export interface NgElement<T> extends HTMLElement {
|
||||
markDirty(): void;
|
||||
}
|
||||
|
||||
/** @experimental */
|
||||
export interface NgElementConstructor<T, P> {
|
||||
readonly is: string;
|
||||
readonly observedAttributes: string[];
|
||||
new (): NgElementWithProps<T, P>;
|
||||
upgrade(host: HTMLElement): NgElementWithProps<T, P>;
|
||||
}
|
||||
|
||||
/** @experimental */
|
||||
export declare type NgElementWithProps<T, P> = NgElement<T> & {
|
||||
[property in keyof
|
||||
|
||||
Reference in New Issue
Block a user