From d621179edab6a451201cf533f6eb1ef564556dde Mon Sep 17 00:00:00 2001 From: Frestein Date: Fri, 7 Mar 2025 12:14:12 +0500 Subject: [PATCH] fix(types): replace `@type` with `@class` annotation for `mp` declaration Replace the `---@type mp` annotation with `---@class mp` to resolve field injection error. --- types/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/init.lua b/types/init.lua index 944dbdc..3596aba 100644 --- a/types/init.lua +++ b/types/init.lua @@ -1,2 +1,2 @@ ----@type mp -_G.mp = nil \ No newline at end of file +---@class mp +_G.mp = nil