diff options
Diffstat (limited to 'locale/zh-tw/script.lua')
-rw-r--r-- | locale/zh-tw/script.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/locale/zh-tw/script.lua b/locale/zh-tw/script.lua index 84c23f8a..27686051 100644 --- a/locale/zh-tw/script.lua +++ b/locale/zh-tw/script.lua @@ -721,6 +721,20 @@ function find(path, pattern) end ---@param style font-style Style to apply function setFontStyle(style) end ``` + +### Literal Enum +``` +local enums = { + READ = 0, + WRITE = 1, + CLOSED = 2 +} + +---@alias FileStates +---| `enums.READ` +---| `enums.WRITE` +---| `enums.CLOSE` +``` --- [檢視文件](https://github.com/sumneko/lua-language-server/wiki/Annotations#alias) ]=] |