summaryrefslogtreecommitdiff
path: root/locale/en-us
diff options
context:
space:
mode:
Diffstat (limited to 'locale/en-us')
-rw-r--r--locale/en-us/script.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/locale/en-us/script.lua b/locale/en-us/script.lua
index 16826aa9..ba083a11 100644
--- a/locale/en-us/script.lua
+++ b/locale/en-us/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`
+```
---
[View Wiki](https://github.com/sumneko/lua-language-server/wiki/Annotations#alias)
]=]