dalet/specification/daletl.md

37 lines
585 B
Markdown

# Daletl specification for Dalet v1.0-preview
## Daletl
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;
body: string | Tag[] | null;
argument: string | number | null;
}
```
### Example
```typescript
const root: Root = [
{
id: 1,
body: "I am Heading with level 1",
argument: 1,
},
];
```