From 52df233a283120e474dbab25c3c27629d6fc2d51 Mon Sep 17 00:00:00 2001 From: Vanic Date: Sun, 8 Mar 2026 20:04:44 +0300 Subject: [PATCH] `ChatCommandDefinition`: fix `func` annotation: returned string may be nil --- definitions/ChatCommandDefinition.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/definitions/ChatCommandDefinition.lua b/definitions/ChatCommandDefinition.lua index 156fc39..0d650e2 100644 --- a/definitions/ChatCommandDefinition.lua +++ b/definitions/ChatCommandDefinition.lua @@ -28,6 +28,6 @@ local ChatCommandDefinition = { --- Called when command is run. Returns boolean success and text output. --- Special case: The help message is shown to the player if `func` --- returns false without a text output. - --- @type fun(name:string, param:string):boolean,string + --- @type fun(name:string, param:string):boolean,string? func = function(name, param) end, }