@virtualstate/examples
Version:
25 lines • 730 B
TypeScript
import { EnableThen, VNode } from "@virtualstate/fringe";
export interface ElementOptions {
tag: string;
attributes: Record<string, unknown>;
node: VNode;
}
export interface ElementContext {
parent?: HTMLElement;
document: Document;
}
export declare class Element implements VNode {
#private;
static [EnableThen]: boolean;
constructor(options: ElementOptions, children?: VNode);
get reference(): symbol;
get source(): string;
get options(): {
[x: string]: unknown;
};
get element(): HTMLElement;
set document(document: Document);
get document(): Document;
[Symbol.asyncIterator](): AsyncGenerator<this, void, unknown>;
}
//# sourceMappingURL=element.d.ts.map