openstamanager/resources/ts/typings/modules.d.ts

26 lines
520 B
TypeScript
Raw Permalink Normal View History

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