summaryrefslogtreecommitdiffhomepage
path: root/vhosts/blog/nuldoc-src/slide/slide.ts
diff options
context:
space:
mode:
Diffstat (limited to 'vhosts/blog/nuldoc-src/slide/slide.ts')
-rw-r--r--vhosts/blog/nuldoc-src/slide/slide.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/vhosts/blog/nuldoc-src/slide/slide.ts b/vhosts/blog/nuldoc-src/slide/slide.ts
index 388c8c88..379d3bc7 100644
--- a/vhosts/blog/nuldoc-src/slide/slide.ts
+++ b/vhosts/blog/nuldoc-src/slide/slide.ts
@@ -89,7 +89,7 @@ export function createNewSlideFromTomlRootObject(
);
}
const revisions_ = revisions.map(
- (x: { date: string; remark: string }, i: number) => {
+ (x: { date: string; remark: string; isInternal?: boolean }, i: number) => {
const date = x.date ?? null;
if (!date) {
throw new SlideError(
@@ -102,10 +102,12 @@ export function createNewSlideFromTomlRootObject(
`[slide.new] 'remark' field not found`,
);
}
+ const isInternal = x.isInternal ?? false;
return {
number: i + 1,
date: stringToDate(date),
- remark: remark,
+ remark,
+ isInternal,
};
},
);