From 0e9ad23fb31a325ba8ca57c88fdf1d301cc9985b Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Sun, 2 Oct 2022 20:19:35 +1100 Subject: [PATCH] fix: types --- imports/points/client.lua | 9 +++++---- imports/zones/client.lua | 1 + resource/interface/client/notify.lua | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/imports/points/client.lua b/imports/points/client.lua index cf501cd77..aaa0f7eb8 100644 --- a/imports/points/client.lua +++ b/imports/points/client.lua @@ -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 = {} diff --git a/imports/zones/client.lua b/imports/zones/client.lua index a88bf5006..dafdaf175 100644 --- a/imports/zones/client.lua +++ b/imports/zones/client.lua @@ -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 = {} diff --git a/resource/interface/client/notify.lua b/resource/interface/client/notify.lua index 214c69d62..deb298e15 100644 --- a/resource/interface/client/notify.lua +++ b/resource/interface/client/notify.lua @@ -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;