hornwitser.no/src/types.ts
Hornwitser c8527f17f7 Reorganise source files into src and web
Use a more traditional source code layout with the code located in the
src/ dir and static web content in the web/ dir, while the other places
are for data not related to code or content.
2025-02-02 10:37:42 +01:00

29 lines
483 B
TypeScript

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,
};