@saber2pr/react
Version:
react in Typescript.
12 lines (11 loc) • 602 B
TypeScript
declare namespace HostConfig {
function createElement(tag: string): HTMLElement;
function createDocumentFragment(): DocumentFragment;
function createTextNode(data: string | number): Text;
function insertBefore(parent: HTMLElement, newChild: HTMLElement, refChild: Node): void;
function appendChild(parent: HTMLElement, ...nodes: (string | Node)[]): void;
function removeSelf(node: HTMLElement): void;
function removeAllChild(node: HTMLElement): void;
function updateProps(node: HTMLElement, newProps: object, oldProps: object): void;
}
export { HostConfig };