fix: satisfy JsonObject constraints for settings types
This commit is contained in:
@@ -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
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user