2023-04-20 20:00:38 +02:00
|
|
|
import type MaterialIcons from '@mdi/js';
|
2022-03-02 20:34:40 +01:00
|
|
|
import {ClassComponent} from 'mithril';
|
|
|
|
|
2023-04-20 20:00:38 +02:00
|
|
|
// TODO: Check types
|
2022-01-26 20:19:32 +01:00
|
|
|
export declare namespace OpenSTAManager {
|
2022-01-25 12:53:15 +01:00
|
|
|
export type Modules = Record<string, Module>;
|
2022-03-02 20:34:40 +01:00
|
|
|
|
2022-01-25 12:53:15 +01:00
|
|
|
export interface Module {
|
|
|
|
hasBootstrap?: boolean;
|
2023-04-20 20:00:38 +02:00
|
|
|
icon: typeof MaterialIcons;
|
2022-01-28 16:26:31 +01:00
|
|
|
moduleVendor: string;
|
2022-01-25 12:53:15 +01:00
|
|
|
}
|
2022-03-02 20:34:40 +01:00
|
|
|
|
|
|
|
export interface ImportedModule {
|
2023-04-20 20:00:38 +02:00
|
|
|
default: ClassComponent;
|
2022-03-02 20:34:40 +01:00
|
|
|
|
|
|
|
[key: string]: ClassComponent | any;
|
|
|
|
}
|
2022-03-10 14:47:18 +01:00
|
|
|
|
|
|
|
export interface User {
|
|
|
|
picture: string;
|
|
|
|
username: string;
|
|
|
|
email: string;
|
|
|
|
}
|
2022-01-25 12:53:15 +01:00
|
|
|
}
|