UNPKG

@tarojs/components

Version:
25 lines (24 loc) 636 B
import { ComponentInterface } from '../../stencil-public-runtime'; interface Attributes { [propName: string]: string | { [propName: string]: string; }; } interface NodeType { name: string; attrs?: Attributes; children?: ElementType[]; } interface TextType { type: 'text'; text: string; } declare type ElementType = NodeType | TextType; declare type StringType = string; export declare type Nodes = ElementType[] | StringType; export declare class RichText implements ComponentInterface { nodes: Nodes; renderNode: (node: ElementType) => string | import("@stencil/core").VNode | null; render(): any; } export {};