Annotate global declarations #2619
Real-Gecko
started this conversation in
Ideas
Replies: 2 comments 5 replies
|
Or maybe something like this would work: table.insert(_G, {
player_min ---@integer
player_max ---@integer
} |
0 replies
|
I just found that there is already a built-in ---@class _G
---@field player_min integer
---@field player_max integerThis way will add |
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I have a project with some
@metafiles added toworkspace.library. This files are created by myself to describe functions and global variables that're inherited from elsewhere when code is executed. While defining classes and functions works fine, declaring globals with types is kinda inconvenient.Maybe something like this would be possible?
Or maybe even a separate file with some tag would be possible?
All reactions