Skip to content

Commit

Permalink
fix(Lua/runtime): missing function and type declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
thelindat committed Oct 8, 2022
1 parent 70bac16 commit 9c824bc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions Lua/runtime/env.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ function GetPlayers() end
---@class state
---@field get fun(self, key: string): any
---@field set fun(self, key: string, value: any, replicated: boolean?)
---@field [string] any

---@class statebag
---@field state state
Expand Down
8 changes: 8 additions & 0 deletions Lua/runtime/luaglm.lua
Original file line number Diff line number Diff line change
Expand Up @@ -208,3 +208,11 @@ function each(...) end
function quat(...) end

qua = quat

---Returns the current time in nanoseconds.
---@return number
function os.nanotime() end

---Returns the current time in microseconds
---@return number
function os.microtime() end
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "cfxlua-vscode",
"displayName": "cfxlua-vscode",
"description": "IntelliSense support for the Lua Script runtime used by FiveM and RedM",
"version": "1.1.1",
"version": "1.1.2",
"publisher": "overextended",
"license": "MIT",
"repository": {
Expand Down

0 comments on commit 9c824bc

Please sign in to comment.