dalet/specification/daletl.md

38 lines
585 B
Markdown
Raw Normal View History

# Daletl specification for Dalet v1.0-preview
## Daletl
2024-08-01 15:54:24 +03:00
Daletl is data representation of serialized/deserialized [DaletPack](./daletpack.md).
### Root
Daletl root is array of tags. For convenience, we will use the typescript notation.
```typescript
type Root = Tag[];
```
### Tag
All tags specification is in [Tags](./tags.md).
```typescript
interface Tag {
id: number;
2024-07-28 22:30:19 +03:00
body: string | Tag[] | null;
argument: string | number | null;
}
2024-07-24 16:41:50 +03:00
```
### Example
2024-07-24 16:41:50 +03:00
```typescript
const root: Root = [
{
id: 1,
body: "I am Heading with level 1",
argument: 1,
},
];
2024-07-24 16:41:50 +03:00
```