diff --git a/html.ts b/html.ts index 0d736f5..cb08deb 100644 --- a/html.ts +++ b/html.ts @@ -1,17 +1,17 @@ // Inspirado en https://gitea.nulo.in/Nulo/html.lua/src/commit/cb7e35dcca0e45b397baf628f5e1a162a2269638/html.lua -interface VirtualElement { +export interface VirtualElement { __element_type: string; things: Thing[]; } -interface RawHtml { +export interface RawHtml { __raw: string; } interface Attributes { [key: string]: string | number; } type Thing = VirtualElement | RawHtml | Attributes | string; -type Renderable = VirtualElement | RawHtml | string; +export type Renderable = VirtualElement | RawHtml | string; export const basicElement = (__element_type: string) =>