mirror of https://github.com/hyper-tuner/types.git
Add `GroupMenu` (#102)
This commit is contained in:
parent
43879b58db
commit
3ea78650a7
File diff suppressed because it is too large
Load Diff
|
@ -20,7 +20,7 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@hyper-tuner/eslint-config": "^0.1.6",
|
"@hyper-tuner/eslint-config": "^0.1.6",
|
||||||
"@types/node": "^18.7.18",
|
"@types/node": "^18.7.22",
|
||||||
"eslint-plugin-modules-newline": "^0.0.6",
|
"eslint-plugin-modules-newline": "^0.0.6",
|
||||||
"eslint-plugin-prettier": "^4.2.1",
|
"eslint-plugin-prettier": "^4.2.1",
|
||||||
"typescript": "^4.8.3"
|
"typescript": "^4.8.3"
|
||||||
|
|
|
@ -37,16 +37,30 @@ export interface Dialogs {
|
||||||
[name: string]: Dialog;
|
[name: string]: Dialog;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface GroupChildMenu {
|
||||||
|
title: string;
|
||||||
|
condition: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface SubMenu {
|
export interface SubMenu {
|
||||||
|
type: 'subMenu',
|
||||||
title: string;
|
title: string;
|
||||||
page: number;
|
page: number;
|
||||||
condition: string;
|
condition: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface GroupMenu {
|
||||||
|
type: 'groupMenu',
|
||||||
|
title: string;
|
||||||
|
groupChildMenus: {
|
||||||
|
[name: string]: GroupChildMenu;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
export interface Menu {
|
export interface Menu {
|
||||||
title: string;
|
title: string;
|
||||||
subMenus: {
|
subMenus: {
|
||||||
[name: string]: SubMenu;
|
[name: string]: SubMenu | GroupMenu;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue