Move PluginWebApi to lib

Resolve circular dependency of controller depending on web_ui and web_ui
depending on controller by moving the type from controller that was used
in web_ui to lib.
This commit is contained in:
Hornwitser committed 2023-11-28 14:48:06 +01:00
1 parent 47c5a727b5
commit 9df6717364
8 files changed
+18 -19

No files matched your search

+1
View File
@@ -1,3 +1,4 @@
export * from "./dist/src/api";
export * from "./dist/src/config";
export * from "./dist/src/data";
export * from "./dist/src/errors";
+1
View File
@@ -3,6 +3,7 @@
* @module lib
*/
export * from "./build_mod";
export * from "./src/api";
export * from "./src/command";
export * from "./src/config";
export * from "./src/data";
+11
View File
@@ -0,0 +1,11 @@
export type PluginWebApi = {
name: string;
version: string;
enabled: boolean;
loaded: boolean;
web: {
main: string;
error?: string;
};
requirePath: string;
}