diff --git a/types/models.d.ts b/types/models.d.ts index c8972c8..3ac8bfa 100644 --- a/types/models.d.ts +++ b/types/models.d.ts @@ -1,5 +1,8 @@ /** Models exported from backend */ declare namespace FG { + interface UserSettings { + display_name: string; + } interface Notification { id: number; plugin: string; diff --git a/types/plugin.d.ts b/types/plugin.d.ts index e66a8f1..5d33c11 100644 --- a/types/plugin.d.ts +++ b/types/plugin.d.ts @@ -20,6 +20,8 @@ export namespace FG_Plugin { version: string; /** Widgets provided by this plugin */ widgets: Widget[]; + /** Widget for settings provided by this plugin **/ + settingsWidgets?: Widget[]; /** Backend modules needed for this plugin to work correctly */ requiredModules: [string, PEP440Version?][]; /** Menu entries for authenticated users */ @@ -141,3 +143,4 @@ export namespace FG_Plugin { widget: Component; } } +