File tree Expand file tree Collapse file tree 4 files changed +56
-0
lines changed Expand file tree Collapse file tree 4 files changed +56
-0
lines changed Original file line number Diff line number Diff line change @@ -721,6 +721,20 @@ function find(path, pattern) end
721721---@param style font-style Style to apply
722722function setFontStyle(style) end
723723```
724+
725+ ### Literal Enum
726+ ```
727+ local enums = {
728+ READ = 0,
729+ WRITE = 1,
730+ CLOSED = 2
731+ }
732+
733+ ---@alias FileStates
734+ ---| `enums.READ`
735+ ---| `enums.WRITE`
736+ ---| `enums.CLOSE`
737+ ```
724738---
725739[View Wiki](https://github.com/sumneko/lua-language-server/wiki/Annotations#alias)
726740]=]
Original file line number Diff line number Diff line change @@ -721,6 +721,20 @@ function find(path, pattern) end
721721---@param style font-style Style to apply
722722function setFontStyle(style) end
723723```
724+
725+ ### Literal Enum
726+ ```
727+ local enums = {
728+ READ = 0,
729+ WRITE = 1,
730+ CLOSED = 2
731+ }
732+
733+ ---@alias FileStates
734+ ---| `enums.READ`
735+ ---| `enums.WRITE`
736+ ---| `enums.CLOSE`
737+ ```
724738---
725739[View Wiki](https://github.com/sumneko/lua-language-server/wiki/Annotations#alias)
726740]=]
Original file line number Diff line number Diff line change @@ -721,6 +721,20 @@ function find(path, pattern) end
721721---@param style font-style Style to apply
722722function setFontStyle(style) end
723723```
724+
725+ ### Literal Enum
726+ ```
727+ local enums = {
728+ READ = 0,
729+ WRITE = 1,
730+ CLOSED = 2
731+ }
732+
733+ ---@alias FileStates
734+ ---| `enums.READ`
735+ ---| `enums.WRITE`
736+ ---| `enums.CLOSE`
737+ ```
724738---
725739[View Wiki](https://github.com/sumneko/lua-language-server/wiki/Annotations#alias)
726740]=]
Original file line number Diff line number Diff line change @@ -721,6 +721,20 @@ function find(path, pattern) end
721721---@param style font-style Style to apply
722722function setFontStyle(style) end
723723```
724+
725+ ### Literal Enum
726+ ```
727+ local enums = {
728+ READ = 0,
729+ WRITE = 1,
730+ CLOSED = 2
731+ }
732+
733+ ---@alias FileStates
734+ ---| `enums.READ`
735+ ---| `enums.WRITE`
736+ ---| `enums.CLOSE`
737+ ```
724738---
725739[檢視文件](https://github.com/sumneko/lua-language-server/wiki/Annotations#alias)
726740]=]
You can’t perform that action at this time.
0 commit comments