Skip to content

Conversation

@ryanlua
Copy link
Contributor

@ryanlua ryanlua commented Jan 15, 2026

Fixes type errors for TopbarPlus that are shown when the Luau New Type Solver beta is enabled.

This PR has been tested with the Luau New Type Solver enabled and disabled. With the Luau New Type Solver disabled, no new warnings are produced. This PR just solves warnings with the Luau New Type Solver enabled.

Script Analysis Before

image

Script Analysis After

image

Copilot AI review requested due to automatic review settings January 15, 2026 22:56
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes type errors detected by the Luau New Type Solver by adding explicit type casts and removing unnecessary type annotations. The changes ensure compatibility with the new type solver while maintaining backward compatibility with the existing type solver.

Changes:

  • Removed unnecessary :: any type cast in debug.traceback call in Janitor.lua
  • Added explicit type cast for ModuleScript in Themes/init.lua to satisfy type checker
  • Fixed trailing newline formatting in both files

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/Packages/Janitor.lua Removed redundant :: any cast from debug.traceback call
src/Features/Themes/init.lua Added explicit type cast for ModuleScript before requiring it

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant