mirror of
https://github.com/jwetzell/showbridge-webui.git
synced 2026-09-04 12:58:58 +00:00
cleanup file names
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
export type Config = {
|
||||
api: ApiConfig
|
||||
modules: ModuleConfig[];
|
||||
routes: RouteConfig[];
|
||||
};
|
||||
|
||||
export type ConfigState = {
|
||||
config: Config;
|
||||
timestamp: number;
|
||||
isCurrent: boolean;
|
||||
};
|
||||
|
||||
export type ApiConfig = {
|
||||
enabled: boolean;
|
||||
port: number;
|
||||
};
|
||||
|
||||
export type ModuleConfig = {
|
||||
id?: string;
|
||||
type: string;
|
||||
params?: Record<string, any>;
|
||||
};
|
||||
|
||||
export type RouteConfig = {
|
||||
input?: string;
|
||||
processors?: ProcessorConfig[];
|
||||
};
|
||||
|
||||
export type ProcessorConfig = {
|
||||
type: string;
|
||||
params?: Record<string, any>;
|
||||
};
|
||||
|
||||
|
||||
export type ModuleError = {
|
||||
index: number;
|
||||
config: ModuleConfig;
|
||||
error: string;
|
||||
}
|
||||
|
||||
export type RouteError = {
|
||||
index: number;
|
||||
config: RouteConfig;
|
||||
error: string;
|
||||
}
|
||||
|
||||
export type ConfigError = {
|
||||
moduleErrors?: ModuleError[];
|
||||
routeErrors?: RouteError[];
|
||||
}
|
||||
Reference in New Issue
Block a user