hornwitser.no/content/types.ts

30 lines
483 B
TypeScript
Raw Normal View History

2025-01-25 08:55:26 +01:00
import type { Node, Element } from "antihtml";
export interface Page {
title: string,
ref: string,
content: Element,
}
2025-01-25 08:55:26 +01:00
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,
};