DenReg/jsx-html/nodejs/node/ElementNode.d.ts

13 lines
424 B
TypeScript
Raw Normal View History

2020-10-14 00:56:11 +00:00
import { NODE_TYPE } from "../constants";
import { NodePropsType, NullableChildType } from "../types";
import { Node } from "./Node";
export declare class ElementNode extends Node {
name: string;
props: NodePropsType;
type: NODE_TYPE;
constructor(name: string, props: NodePropsType, children: NullableChildType[]);
render(): Promise<string | any[]>;
private getValidProps;
private propsToHTML;
}