updated type hints for remaining graphics_element generic types
This commit is contained in:
@@ -21,7 +21,7 @@ local DOC_TYPE = docs.DOC_ITEM_TYPE
|
||||
local LIST_TYPE = docs.DOC_LIST_TYPE
|
||||
|
||||
-- new guide documentation section
|
||||
---@param data { [1]: pocket_app, [2]: graphics_element, [3]: graphics_element[], [4]: { [string]: function }, [5]: [ string, string, string, function ][], [6]: cpair, [7]: cpair }
|
||||
---@param data { [1]: pocket_app, [2]: Div, [3]: Div[], [4]: { [string]: function }, [5]: [ string, string, string, function ][], [6]: cpair, [7]: cpair }
|
||||
---@param base_page nav_tree_page
|
||||
---@param title string
|
||||
---@param items table
|
||||
|
||||
@@ -19,7 +19,7 @@ local cpair = core.cpair
|
||||
local APP_ID = pocket.APP_ID
|
||||
|
||||
-- new home page view
|
||||
---@param root graphics_element parent
|
||||
---@param root Container parent
|
||||
local function new_view(root)
|
||||
local db = iocontrol.get_db()
|
||||
|
||||
|
||||
@@ -29,8 +29,8 @@ local yel_ind_s = style.icon_states.yel_ind_s
|
||||
-- create a boiler view in the unit app
|
||||
---@param app pocket_app
|
||||
---@param u_page nav_tree_page
|
||||
---@param panes graphics_element[]
|
||||
---@param blr_pane graphics_element
|
||||
---@param panes Div[]
|
||||
---@param blr_pane Div
|
||||
---@param b_id integer boiler ID
|
||||
---@param ps psil
|
||||
---@param update function
|
||||
|
||||
@@ -29,8 +29,8 @@ local yel_ind_s = style.icon_states.yel_ind_s
|
||||
-- create a reactor view in the unit app
|
||||
---@param app pocket_app
|
||||
---@param u_page nav_tree_page
|
||||
---@param panes graphics_element[]
|
||||
---@param page_div graphics_element
|
||||
---@param panes Div[]
|
||||
---@param page_div Div
|
||||
---@param u_ps psil
|
||||
---@param update function
|
||||
return function (app, u_page, panes, page_div, u_ps, update)
|
||||
|
||||
@@ -30,8 +30,8 @@ local yel_ind_s = style.icon_states.yel_ind_s
|
||||
-- create a turbine view in the unit app
|
||||
---@param app pocket_app
|
||||
---@param u_page nav_tree_page
|
||||
---@param panes graphics_element[]
|
||||
---@param tbn_pane graphics_element
|
||||
---@param panes Div[]
|
||||
---@param tbn_pane Div
|
||||
---@param u_id integer unit ID
|
||||
---@param t_id integer turbine ID
|
||||
---@param ps psil
|
||||
|
||||
Reference in New Issue
Block a user