summaryrefslogtreecommitdiff
path: root/src/build.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/build.ts')
-rw-r--r--src/build.ts17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/build.ts b/src/build.ts
index fb90814..772570f 100644
--- a/src/build.ts
+++ b/src/build.ts
@@ -1,18 +1,21 @@
import { Marked } from "https://deno.land/x/markdown/mod.ts"
-// the structure of the front matter
+/** references a forum post */
+type ForumEntry = {
+ forum?: number;
+ topic?: number;
+ post: number;
+} | number;
+
+/** the structure of the front matter */
interface PolicyYFM {
name: string;
description: string;
aliases?: string[];
ignore?: boolean;
autoupdate?: {
- forums?: {
- forum?: number;
- topic?: number;
- post: number;
- };
- wiki?: string;
+ forums?: ForumEntry | ForumEntry[];
+ wiki?: string | string[];
};
}