chore(callbacks): update annotations

This commit is contained in:
Linden
2021-11-11 07:56:15 +11:00
parent ab4807fee0
commit 9a60f3bd1d
3 changed files with 10 additions and 6 deletions

View File

@@ -6,7 +6,7 @@ local LIBRARY = 'pe-lualib'
local SERVICE = IsDuplicityVersion() and 'server' or 'client'
local IMPORTS = {}
local function loadFile(file)
local function LoadFile(file)
local dir = ('imports/%s'):format(file)
local chunk = LoadResourceFile(LIBRARY, ('%s/%s.lua'):format(dir, SERVICE))
local shared = LoadResourceFile(LIBRARY, ('%s/shared.lua'):format(dir))
@@ -29,7 +29,7 @@ end
---@param file string
---@return table
function import(file)
if not IMPORTS[file] then loadFile(file) end
if not IMPORTS[file] then LoadFile(file) end
return IMPORTS[file]
end