mirror of
https://github.com/TxtDot/dalet.git
synced 2024-10-16 11:48:06 +03:00
734 B
734 B
Daletl specification for Dalet v1.0-preview
Daletl
Daletl is data representation for Dalet interfaces. DaletPack serializes/deserializes into Daletl.
Daletl must be serialized as DaletPack. All data transfer between server and client is done in this format.
Root
Daletl root is array of tags. For convenience, we will use the typescript notation.
type Root = Tag[];
Tag
All tags specification is in Tags.
interface Tag {
id: number;
body: Tag[] | null;
argument: string | number | null;
}
Example
const root: Root = [
{
id: 1,
body: "I am Heading with level 1",
argument: 1,
},
];