This commit is contained in:
Gvidas Juknevičius 2024-08-18 03:39:01 +03:00
parent 09992e46e7
commit 24947c49a7
Signed by: MCorange
GPG Key ID: 12B1346D720B7FBB
2 changed files with 16 additions and 15 deletions

View File

@ -183,6 +183,13 @@ __BUNDLER_FILES["ui.lua"] = function ()
end -- FILE END: ui.lua --
__BUNDLER_FILES["utils.lua"] = function ()
-- Type coersion for lsp
---@generic T
---@param object any
---@return T
function Cast(object)
return object
end
--- @type Monitor
local MONITOR = Cast(peripheral.find("monitor"))
local MONITOR_Y = 1
@ -195,13 +202,6 @@ __BUNDLER_FILES["utils.lua"] = function ()
MONITOR.clear()
MONITOR.setTextScale(scale)
end
-- Type coersion for lsp
---@generic T
---@param object any
---@return T
function Cast(object)
return object
end
return {
MonPrint,
MonReset,

View File

@ -1,3 +1,12 @@
-- Type coersion for lsp
---@generic T
---@param object any
---@return T
function Cast(object)
return object
end
--- @type Monitor
local MONITOR = Cast(peripheral.find("monitor"))
local MONITOR_Y = 1
@ -12,14 +21,6 @@ function MonReset(scale)
MONITOR.setTextScale(scale)
end
-- Type coersion for lsp
---@generic T
---@param object any
---@return T
function Cast(object)
return object
end
return {
MonPrint,
MonReset,