export types
This commit is contained in:
parent
2c8d95a18d
commit
b57b14a49a
1 changed files with 3 additions and 3 deletions
6
html.ts
6
html.ts
|
@ -1,17 +1,17 @@
|
||||||
// Inspirado en https://gitea.nulo.in/Nulo/html.lua/src/commit/cb7e35dcca0e45b397baf628f5e1a162a2269638/html.lua
|
// Inspirado en https://gitea.nulo.in/Nulo/html.lua/src/commit/cb7e35dcca0e45b397baf628f5e1a162a2269638/html.lua
|
||||||
|
|
||||||
interface VirtualElement {
|
export interface VirtualElement {
|
||||||
__element_type: string;
|
__element_type: string;
|
||||||
things: Thing[];
|
things: Thing[];
|
||||||
}
|
}
|
||||||
interface RawHtml {
|
export interface RawHtml {
|
||||||
__raw: string;
|
__raw: string;
|
||||||
}
|
}
|
||||||
interface Attributes {
|
interface Attributes {
|
||||||
[key: string]: string | number;
|
[key: string]: string | number;
|
||||||
}
|
}
|
||||||
type Thing = VirtualElement | RawHtml | Attributes | string;
|
type Thing = VirtualElement | RawHtml | Attributes | string;
|
||||||
type Renderable = VirtualElement | RawHtml | string;
|
export type Renderable = VirtualElement | RawHtml | string;
|
||||||
|
|
||||||
export const basicElement =
|
export const basicElement =
|
||||||
(__element_type: string) =>
|
(__element_type: string) =>
|
||||||
|
|
Loading…
Reference in a new issue