mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 19:53:36 +00:00
Add most used module properties
This commit is contained in:
parent
780124c2f5
commit
4c35fda045
17
types.ts
17
types.ts
@ -1,5 +1,20 @@
|
|||||||
|
type ModuleProperties = {
|
||||||
|
defaults?: object,
|
||||||
|
start?(): void,
|
||||||
|
getHeader?(): string,
|
||||||
|
getTemplate?(): string,
|
||||||
|
getTemplateData?(): object,
|
||||||
|
notificationReceived?(notification: string, payload: any, sender: object): void,
|
||||||
|
socketNotificationReceived?(notification: string, payload: any): void,
|
||||||
|
suspend?(): void,
|
||||||
|
resume?(): void,
|
||||||
|
getDom?(): HTMLElement,
|
||||||
|
getStyles?(): string[],
|
||||||
|
[key: string]: any,
|
||||||
|
};
|
||||||
|
|
||||||
export declare const Module: {
|
export declare const Module: {
|
||||||
register(moduleName: string, moduleProperties: object): void;
|
register(moduleName: string, moduleProperties: ModuleProperties): void;
|
||||||
};
|
};
|
||||||
|
|
||||||
export declare const Log: {
|
export declare const Log: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user