In Luau, consider using a variable for a type to be a usage of it #270
Labels
A-lints
Area: Relating to a lint directly
A-roblox
Area: Roblox specific
C-enhancement
Category: Feature request or improvement
At the moment, this produces an unused variable lint:
Ideally, it would consider the use of
foo
in the type annotation to be a valid use of it.I'm doing this because a project I'm using has very large type definitions, and it's horrible to have them in the same file as the bulk of my code, so I split it. This ends up leaving me with a module that's only used for type definitions though. It makes me sad to have to manually suppress this lint.
The text was updated successfully, but these errors were encountered: