lemmy-help icon indicating copy to clipboard operation
lemmy-help copied to clipboard

Support `---@enum`

Open numToStr opened this issue 2 years ago • 0 comments

This is very useful in the actual code as we don't have to create separate ---@alias for describing enums but the problem is that we have to parse tables to get all the enum variants

Reference

  • https://github.com/sumneko/lua-language-server/wiki/Annotations#enum
  • https://github.com/sumneko/lua-language-server/issues/1255#issuecomment-1170870858

numToStr avatar Oct 14 '22 04:10 numToStr