From 301944d9cc57c1f3c3a79334a0e3c886fb8dceb0 Mon Sep 17 00:00:00 2001 From: --get-all Date: Mon, 28 Mar 2022 13:56:08 +0800 Subject: [PATCH 1/4] update meta basic.lua Document add standard library function [newproxy], although they do not appear in the document --- meta/template/basic.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/meta/template/basic.lua b/meta/template/basic.lua index b26d39599..527fb36ff 100644 --- a/meta/template/basic.lua +++ b/meta/template/basic.lua @@ -126,6 +126,12 @@ function loadfile(filename, mode, env) end ---@nodiscard function loadstring(text, chunkname) end +---@version 5.1 +---@param flag_or_proxy boolean | table +---@return table +---@nodiscard +function newproxy(flag_or_proxy) end + ---@version 5.1 ---#DES 'module' ---@param name string From abb876f0f5c8c138dc457c8a8ee5a60d043b2f4a Mon Sep 17 00:00:00 2001 From: --get-all Date: Mon, 28 Mar 2022 15:18:07 +0800 Subject: [PATCH 2/4] Update basic.lua fix newproxy return type to userdata --- meta/template/basic.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/template/basic.lua b/meta/template/basic.lua index 527fb36ff..aa3105088 100644 --- a/meta/template/basic.lua +++ b/meta/template/basic.lua @@ -128,7 +128,7 @@ function loadstring(text, chunkname) end ---@version 5.1 ---@param flag_or_proxy boolean | table ----@return table +---@return userdata ---@nodiscard function newproxy(flag_or_proxy) end From 5873074a6f10b09f885ef8a0f819dc8b1004f50c Mon Sep 17 00:00:00 2001 From: --get-all Date: Mon, 28 Mar 2022 16:29:19 +0800 Subject: [PATCH 3/4] Update basic.lua fix name --- meta/template/basic.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/template/basic.lua b/meta/template/basic.lua index aa3105088..1b7b377a3 100644 --- a/meta/template/basic.lua +++ b/meta/template/basic.lua @@ -127,10 +127,10 @@ function loadfile(filename, mode, env) end function loadstring(text, chunkname) end ---@version 5.1 ----@param flag_or_proxy boolean | table +---@param proxy boolean | table ---@return userdata ---@nodiscard -function newproxy(flag_or_proxy) end +function newproxy(proxy) end ---@version 5.1 ---#DES 'module' From 513dd193e20a3a3c874d64935946977365231795 Mon Sep 17 00:00:00 2001 From: --get-all Date: Mon, 28 Mar 2022 16:35:47 +0800 Subject: [PATCH 4/4] Update basic.lua remove whitespace --- meta/template/basic.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/template/basic.lua b/meta/template/basic.lua index 1b7b377a3..5e665e289 100644 --- a/meta/template/basic.lua +++ b/meta/template/basic.lua @@ -127,7 +127,7 @@ function loadfile(filename, mode, env) end function loadstring(text, chunkname) end ---@version 5.1 ----@param proxy boolean | table +---@param proxy boolean|table ---@return userdata ---@nodiscard function newproxy(proxy) end