From 0d7dda3b49ad35003f6b7f9240bf85955872a514 Mon Sep 17 00:00:00 2001 From: Ryan Luu Date: Thu, 15 Jan 2026 14:49:28 -0800 Subject: [PATCH 1/2] Assert module script type to fix type error --- src/Features/Themes/init.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 From 99dde7e447ef5ce7e04aa8ba0a1aefc53eb83f70 Mon Sep 17 00:00:00 2001 From: Ryan Luu Date: Thu, 15 Jan 2026 14:51:34 -0800 Subject: [PATCH 2/2] Remove `any` assertion to fix type error --- src/Packages/Janitor.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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