mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-22 13:10:29 +00:00
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.
This commit is contained in:
@@ -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<Record<string, string>>;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user