diff --git a/src/Features/Themes/init.lua b/src/Features/Themes/init.lua index a6ef375..ecfbb2b 100644 --- a/src/Features/Themes/init.lua +++ b/src/Features/Themes/init.lua @@ -266,7 +266,8 @@ function Themes.set(icon, theme) Themes.change(icon) end)) if typeof(theme) == "Instance" and theme:IsA("ModuleScript") then - theme = require(theme) + local themeModule = theme :: ModuleScript + theme = require(themeModule) end icon.appliedTheme = theme Themes.rebuild(icon) @@ -350,4 +351,4 @@ end -return Themes \ No newline at end of file +return Themes diff --git a/src/Packages/Janitor.lua b/src/Packages/Janitor.lua index 9350093..9259d98 100644 --- a/src/Packages/Janitor.lua +++ b/src/Packages/Janitor.lua @@ -89,7 +89,7 @@ function Janitor.__index:Add(Object, MethodName, Index) end MethodName = MethodName or TypeDefaults[objectType] or "Destroy" if type(Object) ~= "function" and not Object[MethodName] then - warn(string.format(METHOD_NOT_FOUND_ERROR, tostring(Object), tostring(MethodName), debug.traceback(nil :: any, 2))) + warn(string.format(METHOD_NOT_FOUND_ERROR, tostring(Object), tostring(MethodName), debug.traceback(nil, 2))) end local OriginalTraceback = debug.traceback("") @@ -319,4 +319,4 @@ for FunctionName, Function in next, Janitor.__index do Janitor.__index[NewFunctionName] = Function end -return Janitor \ No newline at end of file +return Janitor