From 838ce36fdd7abdff0b4cab5e67c2500325178805 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 23 Jun 2022 02:57:13 +0800 Subject: update --- meta/template/math.lua | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'meta') diff --git a/meta/template/math.lua b/meta/template/math.lua index d9837424..c126aef7 100644 --- a/meta/template/math.lua +++ b/meta/template/math.lua @@ -137,16 +137,18 @@ function math.log(x, base) end function math.log10(x) end ---#DES 'math.max' ----@param x number ----@param ... number ----@return number +---@generic Number: number +---@param x Number +---@param ... Number +---@return Number ---@nodiscard function math.max(x, ...) end ---#DES 'math.min' ----@param x number ----@param ... number ----@return number +---@generic Number: number +---@param x Number +---@param ... Number +---@return Number ---@nodiscard function math.min(x, ...) end @@ -225,7 +227,7 @@ function math.tanh(x) end ---@version >5.3 ---#DES 'math.tointeger' ----@param x number +---@param x number|string ---@return integer? ---@nodiscard function math.tointeger(x) end -- cgit v1.2.3