mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 03:39:55 +00:00
Update typescript definition (#3173)
This commit is contained in:
parent
7ba96aeb98
commit
200db181d5
@ -22,6 +22,7 @@ _This release is scheduled to be released on 2023-10-01._
|
|||||||
- Update dependencies incl. electron to v26
|
- Update dependencies incl. electron to v26
|
||||||
- Replace pretty-quick by lint-staged (<https://github.com/azz/pretty-quick/issues/164>)
|
- Replace pretty-quick by lint-staged (<https://github.com/azz/pretty-quick/issues/164>)
|
||||||
- Update engine node >=18. v16 reached it's end of life. (#3170)
|
- Update engine node >=18. v16 reached it's end of life. (#3170)
|
||||||
|
- Update typescript definition for modules
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
@ -1,16 +1,19 @@
|
|||||||
type ModuleProperties = {
|
type ModuleProperties = {
|
||||||
defaults?: object;
|
defaults?: object;
|
||||||
|
[key: string]: any;
|
||||||
start?(): void;
|
start?(): void;
|
||||||
|
getScripts?(): string[];
|
||||||
|
getStyles?(): string[];
|
||||||
|
getTranslations?(): object;
|
||||||
|
getDom?(): HTMLElement;
|
||||||
getHeader?(): string;
|
getHeader?(): string;
|
||||||
getTemplate?(): string;
|
getTemplate?(): string;
|
||||||
getTemplateData?(): object;
|
getTemplateData?(): object;
|
||||||
notificationReceived?(notification: string, payload: any, sender: object): void;
|
notificationReceived?(notification: string, payload: any, sender: object): void;
|
||||||
|
nunjucksEnvironment?(): void;
|
||||||
socketNotificationReceived?(notification: string, payload: any): void;
|
socketNotificationReceived?(notification: string, payload: any): void;
|
||||||
suspend?(): void;
|
suspend?(): void;
|
||||||
resume?(): void;
|
resume?(): void;
|
||||||
getDom?(): HTMLElement;
|
|
||||||
getStyles?(): string[];
|
|
||||||
[key: string]: any;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export declare const Module: {
|
export declare const Module: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user