dalet/specification/daletl.md

41 lines
651 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).
### Page
Daletl page is array of tags. For convenience, we will use the typescript notation.
```typescript
type Page = Tag[];
```
### Tag
All tags specification is in [Tags](./tags.md).
```typescript
export type Body = string | Tag[] | null;
export type Argument = string | number | null;
export interface Tag {
id: number;
body: Body;
argument: Argument;
}
2024-07-24 16:41:50 +03:00
```
### Example
2024-07-24 16:41:50 +03:00
```typescript
const page: Page = [
{
id: 1,
body: "I am Heading with level 1",
argument: 1,
},
];
2024-07-24 16:41:50 +03:00
```