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

10 lines
329 B
TypeScript
Raw Normal View History

2020-10-14 00:56:11 +00:00
import { NODE_TYPE } from "../constants";
import { NullableChildType } from "../types";
export declare abstract class Node {
children: NullableChildType[];
abstract type: NODE_TYPE;
constructor(children: NullableChildType[]);
abstract render(): Promise<string | any[]>;
renderChildren(): Promise<string[]>;
}