Deprecating functions using declaration syntax #1610
petrihakkinen
started this conversation in
General
Replies: 1 comment 3 replies
-
You can try using the |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It seems it is not possible to deprecate functions using the declaration syntax (yet).
Currently what we do as a workaround:
--@deprecated Use xyz instead
[*] Since modules are loaded via Luau::FileResolver there seems to be no place to set 'deprecated' flag for functions in modules before the linter executes its deprecated api visitor.
Needless to say, parsing the magic comments is quite fragile and replicating the api visitor is not ideal either...
Any suggestions?
Beta Was this translation helpful? Give feedback.
All reactions