diff --git a/docs/superpowers/plans/2026-08-14-llama-watch.md b/docs/superpowers/plans/2026-08-14-llama-watch.md index 8c6b000..d6f70fc 100644 --- a/docs/superpowers/plans/2026-08-14-llama-watch.md +++ b/docs/superpowers/plans/2026-08-14-llama-watch.md @@ -254,12 +254,14 @@ Expected: FAIL — module `../src/lib/util` not found. - [ ] **Step 3: Implement `src/lib/util.ts`** ```ts +import type { JsonObject } from "@elgato/utils"; + export const DEFAULT_BASE_URL = "http://localhost:9292"; -export interface CfgSettings { +export type CfgSettings = { baseUrl?: string; apiKey?: string; -} +} & JsonObject; export interface LlamaSwapConfig { baseUrl: string; @@ -1572,6 +1574,9 @@ interface DataSourceItem { label: string; value: string; } +``` + +Note: `DataSourceItem` must be a `type` alias, not an interface — interfaces without an index signature aren't assignable to `JsonObject`/`JsonValue`, which produces non-fatal TS diagnostics in `sendToPropertyInspector(payload: JsonValue)`. Define it as `type DataSourceItem = { label: string; value: string };` instead (type literals get implicit index signatures). export function registerDataSources(): void { streamDeck.ui.onSendToPlugin(async (ev) => {