mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-03-01 16:06:51 +01:00
Add some optional types
This commit is contained in:
@@ -9037,7 +9037,7 @@ function HandleScreensaverStatusIcons() : void {
|
|||||||
} else {
|
} else {
|
||||||
payloadString += '~';
|
payloadString += '~';
|
||||||
}
|
}
|
||||||
|
// statusUpdate~icon1~icon1Color~icon1font~icon2~icon2color~icon2font~icon2font
|
||||||
SendToPanel({ payload: 'statusUpdate~' + payloadString });
|
SendToPanel({ payload: 'statusUpdate~' + payloadString });
|
||||||
|
|
||||||
} catch (err: any) {
|
} catch (err: any) {
|
||||||
@@ -9891,6 +9891,7 @@ namespace NSPanel {
|
|||||||
|
|
||||||
export type PageBaseType = {
|
export type PageBaseType = {
|
||||||
type: PagetypeType,
|
type: PagetypeType,
|
||||||
|
uniqueName?: string,
|
||||||
heading: string,
|
heading: string,
|
||||||
items: PageItem[],
|
items: PageItem[],
|
||||||
useColor: boolean,
|
useColor: boolean,
|
||||||
@@ -10001,6 +10002,8 @@ namespace NSPanel {
|
|||||||
// mean string start with getState(' and end with ').val
|
// mean string start with getState(' and end with ').val
|
||||||
type getStateID = string;
|
type getStateID = string;
|
||||||
export type PageBaseItem = {
|
export type PageBaseItem = {
|
||||||
|
uniqueName?: string,
|
||||||
|
role?: string,
|
||||||
id?: string | null,
|
id?: string | null,
|
||||||
icon?: string,
|
icon?: string,
|
||||||
icon2?: string,
|
icon2?: string,
|
||||||
|
|||||||
Reference in New Issue
Block a user