UNPKG

@the-little-books/little

Version:

14 lines (13 loc) 266 B
export declare type Node = Element | Text; export interface Element { kind: "Node.Element"; tag: string; attributes: { [key: string]: string; }; contents: Array<Node>; } export interface Text { kind: "Node.Text"; value: string; }