From 2df677d065aacc395d9ad10ce2cf02698c41b360 Mon Sep 17 00:00:00 2001 From: Maurice Date: Sat, 24 Oct 2026 23:52:37 +0200 Subject: [PATCH] refactor(demo): the addon states type names its shelves inline The shelf shape was an exported interface nothing outside the repository imports, which knip counts as an unused export. --- server/src/db/repositories/DemoRepository.ts | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/server/src/db/repositories/DemoRepository.ts b/server/src/db/repositories/DemoRepository.ts index ac6a4565b..0a0a4a9db 100644 --- a/server/src/db/repositories/DemoRepository.ts +++ b/server/src/db/repositories/DemoRepository.ts @@ -40,17 +40,12 @@ export interface DemoInstanceKeyRow { value: string | null; } -/** One shelf of the demo addon policy (`demo/demo-addon-policy.ts`): the rows it switches on and off. */ -export interface DemoShelfStates { - readonly on: readonly string[]; - readonly off: readonly string[]; -} - /** The states `applyAddonStates` writes: three shelves and the switches under them in `app_settings`. */ export interface DemoAddonStates { - readonly addons: DemoShelfStates; - readonly photoProviders: DemoShelfStates; - readonly documentProviders: DemoShelfStates; + /** Each shelf names the rows it switches on and the rows it switches off. */ + readonly addons: { readonly on: readonly string[]; readonly off: readonly string[] }; + readonly photoProviders: { readonly on: readonly string[]; readonly off: readonly string[] }; + readonly documentProviders: { readonly on: readonly string[]; readonly off: readonly string[] }; readonly appSettings: Readonly>; }