fix: types

This commit is contained in:
Linden
2022-10-02 20:19:35 +11:00
parent 4da4756f7a
commit 0e9ad23fb3
3 changed files with 7 additions and 5 deletions

View File

@@ -3,11 +3,12 @@
---@field coords vector3 ---@field coords vector3
---@field distance number ---@field distance number
---@field currentDistance number ---@field currentDistance number
---@field isClosest boolean? ---@field isClosest? boolean
---@field remove fun() ---@field remove fun()
---@field onEnter fun(self: CPoint)? ---@field onEnter? fun(self: CPoint)
---@field onExit fun(self: CPoint)? ---@field onExit? fun(self: CPoint)
---@field nearby fun(self: CPoint)? ---@field nearby? fun(self: CPoint)
---@field [string] any
local points = {} local points = {}
local nearbyPoints = {} local nearbyPoints = {}

View File

@@ -9,6 +9,7 @@ local glm = require 'glm'
---@field onEnter fun(self: CZone)? ---@field onEnter fun(self: CZone)?
---@field onExit fun(self: CZone)? ---@field onExit fun(self: CZone)?
---@field inside fun(self: CZone)? ---@field inside fun(self: CZone)?
---@field [string] any
---@type { [number]: CZone } ---@type { [number]: CZone }
Zones = {} Zones = {}

View File

@@ -8,7 +8,7 @@
---@field duration? number ---@field duration? number
---@field position? NotificationPosition ---@field position? NotificationPosition
---@field type? NotificationType ---@field type? NotificationType
---@field style? string ---@field style? { [string]: any }
---@field icon? string; ---@field icon? string;
---@field iconColor? string; ---@field iconColor? string;