From b14065d4426d101bf1967b066b961164b93b3927 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sat, 2 Nov 2024 01:42:25 +0200 Subject: [PATCH] server: Address self-review --- src/services/code_block_theme.ts | 3 ++- src/services/options_init.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/services/code_block_theme.ts b/src/services/code_block_theme.ts index 0126083fa3..2b0757e238 100644 --- a/src/services/code_block_theme.ts +++ b/src/services/code_block_theme.ts @@ -22,7 +22,8 @@ interface ColorTheme { * Returns all the supported syntax highlighting themes for code blocks, in groups. * * The return value is an object where the keys represent groups in their human-readable name (e.g. "Light theme") - * and the values are an array containing the information about every theme. + * and the values are an array containing the information about every theme. There is also a special group with no + * title (empty string) which should be displayed at the top of the listing pages, without a group. * * @returns the supported themes, grouped. */ diff --git a/src/services/options_init.ts b/src/services/options_init.ts index 17a9cccb19..dfac812f6e 100644 --- a/src/services/options_init.ts +++ b/src/services/options_init.ts @@ -1,4 +1,5 @@ -import optionService, { OptionMap } from "./options.js"; +import optionService from "./options.js"; +import type { OptionMap } from "./options.js"; import appInfo from "./app_info.js"; import utils from "./utils.js"; import log from "./log.js";