Early draft of website content

This commit is contained in:
Hornwitser 2025-01-25 08:55:26 +01:00
parent ef8aaa6f6d
commit f7bc525310
8 changed files with 163 additions and 23 deletions

View file

@ -1,7 +1,29 @@
import { Element } from "antihtml";
import type { Node, Element } from "antihtml";
export interface Page {
title: string,
ref: string,
content: Element,
}
export interface ProjectMeta {
status: 'draft' | 'published',
title: string,
ref: string,
startedAt: string,
endedAt?: string,
};
export interface Project extends ProjectMeta {
content: Node,
};
export interface WordsMeta {
status: "draft" | "published",
title: string,
ref: string,
}
export interface Words extends WordsMeta {
content: Node,
};