@brusalk/react-wow-addon
Version:
React-style UI Framework for World of Warcraft AddOns
21 lines (20 loc) • 632 B
TypeScript
/** @noSelfInFile */
import { Component } from '.';
export interface InternalElement {
type: string | Component;
props: Props;
}
export declare type RawChild = InternalElement | string | boolean | null;
export declare type RenderableChildElement = InternalElement | string;
interface Props {
key?: string;
children?: InternalElement[];
nodeValue?: string;
[k: string]: any;
}
export declare const TEXT_ELEMENT = "TEXT ELEMENT";
export declare function createElement(type: string | Component, config: Props, rawChildren?: RawChild[][]): {
type: string | Component<{}, {}>;
props: Props;
};
export {};