Skip to content

Commit

Permalink
fix: types
Browse files Browse the repository at this point in the history
  • Loading branch information
thelindat committed Oct 2, 2022
1 parent 4da4756 commit 0e9ad23
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
9 changes: 5 additions & 4 deletions imports/points/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
---@field coords vector3
---@field distance number
---@field currentDistance number
---@field isClosest boolean?
---@field isClosest? boolean
---@field remove fun()
---@field onEnter fun(self: CPoint)?
---@field onExit fun(self: CPoint)?
---@field nearby fun(self: CPoint)?
---@field onEnter? fun(self: CPoint)
---@field onExit? fun(self: CPoint)
---@field nearby? fun(self: CPoint)
---@field [string] any

local points = {}
local nearbyPoints = {}
Expand Down
1 change: 1 addition & 0 deletions imports/zones/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ local glm = require 'glm'
---@field onEnter fun(self: CZone)?
---@field onExit fun(self: CZone)?
---@field inside fun(self: CZone)?
---@field [string] any

---@type { [number]: CZone }
Zones = {}
Expand Down
2 changes: 1 addition & 1 deletion resource/interface/client/notify.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
---@field duration? number
---@field position? NotificationPosition
---@field type? NotificationType
---@field style? string
---@field style? { [string]: any }
---@field icon? string;
---@field iconColor? string;

Expand Down

0 comments on commit 0e9ad23

Please sign in to comment.