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 { gpuInfos, parseGpuMetrics } from "./metrics-parser";
|
||||||
import { cfgFromSettings, type CfgSettings } from "./util";
|
import { cfgFromSettings, type CfgSettings } from "./util";
|
||||||
|
|
||||||
interface DataSourceItem {
|
type DataSourceItem = { label: string; value: string };
|
||||||
label: string;
|
|
||||||
value: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function registerDataSources(): void {
|
export function registerDataSources(): void {
|
||||||
streamDeck.ui.onSendToPlugin(async (ev) => {
|
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 const DEFAULT_BASE_URL = "http://localhost:9292";
|
||||||
|
|
||||||
export interface CfgSettings {
|
export type CfgSettings = {
|
||||||
baseUrl?: string;
|
baseUrl?: string;
|
||||||
apiKey?: string;
|
apiKey?: string;
|
||||||
}
|
} & JsonObject;
|
||||||
|
|
||||||
export interface LlamaSwapConfig {
|
export interface LlamaSwapConfig {
|
||||||
baseUrl: string;
|
baseUrl: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user