fix: satisfy JsonObject constraints for settings types

This commit is contained in:
2026-08-14 10:47:38 -06:00
parent 06eb23bd6a
commit f45b29fcaf
2 changed files with 5 additions and 6 deletions
+1 -4
View File
@@ -3,10 +3,7 @@ import { fetchMetrics, fetchModels } from "./llamaswap";
import { gpuInfos, parseGpuMetrics } from "./metrics-parser";
import { cfgFromSettings, type CfgSettings } from "./util";
interface DataSourceItem {
label: string;
value: string;
}
type DataSourceItem = { label: string; value: string };
export function registerDataSources(): void {
streamDeck.ui.onSendToPlugin(async (ev) => {
+4 -2
View File
@@ -1,9 +1,11 @@
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;