Skip to content

Resolve typechecking errors with strict Luau in Trove.#263

Open
MaximumADHD wants to merge 8 commits intoSleitnick:mainfrom
MaximumADHD:main
Open

Resolve typechecking errors with strict Luau in Trove.#263
MaximumADHD wants to merge 8 commits intoSleitnick:mainfrom
MaximumADHD:main

Conversation

@MaximumADHD
Copy link

Summary

This commit extends on #200. The recent changes to support --!strict in Trove were good in principle, but had several problems because of Luau being Luau. This pull request attempts to resolve a lot of these problems.

Unlike before, this allows the actual metatable-backed Trove type to be exported!

What was changed?

I've removed the manually-defined Trove type in favor of renaming the TroveInternal type to Trove. Function signatures are now derived as they are written in the Trove table. I also updated many of the types in Trackable to be generic-backed (defaults set to any and ...any when possible), which allows for T to be slotted in as the value of self. It just works™!

Hard to say is this is 100% bug-free, but I've been thoroughly checking against my --!strict codebase and the results are extremely promising!

image

image

image

@rbxrootx
Copy link

Bless!

@Sleitnick
Copy link
Owner

Nice, good timing with #261. I'll check this out over the weekend

Repository owner deleted a comment from ionungur365-sketch Feb 6, 2026
Repository owner deleted a comment from ionungur365-sketch Feb 6, 2026
Repository owner deleted a comment from ionungur365-sketch Feb 6, 2026
Repository owner deleted a comment from ionungur365-sketch Feb 6, 2026
Repository owner deleted a comment from ionungur365-sketch Feb 6, 2026
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.

3 participants