export types

This commit is contained in:
Cat /dev/Nulo 2023-01-12 14:54:22 -03:00
parent 2c8d95a18d
commit b57b14a49a

View file

@ -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) =>