From d558a90eaa28b58ce4b87a33a17b8f691a366db3 Mon Sep 17 00:00:00 2001 From: David Sveningsson Date: Sun, 3 Nov 2024 17:52:58 +0100 Subject: [PATCH] fix: `markdown.messagebox` is optional --- etc/index.api.md | 4 ++-- src/generator.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/etc/index.api.md b/etc/index.api.md index fd5add068..351920247 100644 --- a/etc/index.api.md +++ b/etc/index.api.md @@ -103,8 +103,8 @@ export interface GeneratorOptions { // (undocumented) cacheFolder: string; exampleFolders: string[]; - markdown: { - messagebox: { + markdown?: { + messagebox?: { title?: Record; }; }; diff --git a/src/generator.ts b/src/generator.ts index 9a3b48c8d..bab074843 100644 --- a/src/generator.ts +++ b/src/generator.ts @@ -75,11 +75,11 @@ export interface GeneratorOptions { /** * Options for markdown renderer. */ - markdown: { + markdown?: { /** * Options for markdown messagebox container. */ - messagebox: { + messagebox?: { /** * Default titles for messageboxes. *