mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core&ui: optimize injectable
This commit is contained in:
1 parent
25444f69f0
commit
7343c596e9
9 files changed
+64
-64
No files matched your search
@@ -694,17 +694,15 @@ export interface Lib extends Record<string, any> {
|
||||
problemSearch: ProblemSearch;
|
||||
}
|
||||
|
||||
export type UIInjectableFields = 'ProblemAdd' | 'Nav' | 'UserDropdown';
|
||||
export interface UI {
|
||||
manifest: Dictionary<string>,
|
||||
template: Dictionary<string>,
|
||||
nodes: {
|
||||
nav: any[],
|
||||
problem_add: any[],
|
||||
user_dropdown: any[],
|
||||
},
|
||||
nodes: Record<UIInjectableFields, any[]>,
|
||||
getNodes: typeof import('./lib/ui').getNodes,
|
||||
Nav: typeof import('./lib/ui').Nav,
|
||||
ProblemAdd: typeof import('./lib/ui').ProblemAdd,
|
||||
UserDropdown: typeof import('./lib/ui').UserDropdown,
|
||||
inject: typeof import('./lib/ui').inject,
|
||||
}
|
||||
|
||||
export interface HydroGlobal {
|
||||
|
||||
Reference in new issue
Block a user