From f15d77c9769c3092b522eac7b6332fa108106f88 Mon Sep 17 00:00:00 2001 From: alek13 Date: Thu, 24 Apr 2025 20:45:49 +0300 Subject: [PATCH] `ide-helper`: `@return boolean` for `minetest.is_{yes|nan}()` functions. --- minetest_ns.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/minetest_ns.lua b/minetest_ns.lua index 0ba8f6f..4862b01 100644 --- a/minetest_ns.lua +++ b/minetest_ns.lua @@ -174,10 +174,14 @@ function minetest.formspec_escape(string) end --- * returns true if passed 'y', 'yes', 'true' or a number that isn't zero. --- --- [View in lua_api.txt](https://github.com/minetest/minetest/blob/5.4.1/doc/lua_api.txt#L3265-L3266) +--- +--- @return boolean function minetest.is_yes(arg) end --- * returns true when the passed number represents NaN. --- --- [View in lua_api.txt](https://github.com/minetest/minetest/blob/5.4.1/doc/lua_api.txt#L3267-L3268) +--- +--- @return boolean function minetest.is_nan(arg) end --- * returns time with microsecond precision. May not return wall time. --- * This value might overflow on certain 32-bit systems!