Can I Annotation a local variable as a global variable? #2395
Unanswered
zhangxiaojun92163
asked this question in
Q&A
Replies: 1 comment
-
You can have another definition file that's not required by any other file with this content: ---@meta _
---@class someTypeNameFor_envGlobal
---@field config table
envGlobal = {} |
Beta Was this translation helpful? Give feedback.
0 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.
-
Can I change
config
to a global variable by some way?Beta Was this translation helpful? Give feedback.
All reactions