From 301944d9cc57c1f3c3a79334a0e3c886fb8dceb0 Mon Sep 17 00:00:00 2001 From: --get-all Date: Mon, 28 Mar 2022 13:56:08 +0800 Subject: 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(+) (limited to 'meta/template') diff --git a/meta/template/basic.lua b/meta/template/basic.lua index b26d3959..527fb36f 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 -- cgit v1.2.3 From abb876f0f5c8c138dc457c8a8ee5a60d043b2f4a Mon Sep 17 00:00:00 2001 From: --get-all Date: Mon, 28 Mar 2022 15:18:07 +0800 Subject: Update basic.lua fix newproxy return type to userdata --- meta/template/basic.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta/template') diff --git a/meta/template/basic.lua b/meta/template/basic.lua index 527fb36f..aa310508 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 -- cgit v1.2.3 From 5873074a6f10b09f885ef8a0f819dc8b1004f50c Mon Sep 17 00:00:00 2001 From: --get-all Date: Mon, 28 Mar 2022 16:29:19 +0800 Subject: Update basic.lua fix name --- meta/template/basic.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'meta/template') diff --git a/meta/template/basic.lua b/meta/template/basic.lua index aa310508..1b7b377a 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' -- cgit v1.2.3 From 513dd193e20a3a3c874d64935946977365231795 Mon Sep 17 00:00:00 2001 From: --get-all Date: Mon, 28 Mar 2022 16:35:47 +0800 Subject: Update basic.lua remove whitespace --- meta/template/basic.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta/template') diff --git a/meta/template/basic.lua b/meta/template/basic.lua index 1b7b377a..5e665e28 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 -- cgit v1.2.3