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
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
I just found that there is already a built-in ---@class _G
---@field player_min integer
---@field player_max integer This way will add |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a project with some
@meta
files 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?
Beta Was this translation helpful? Give feedback.
All reactions