diff --git a/definitions/AuthenticationHandlerDefinition.lua b/definitions/AuthenticationHandlerDefinition.lua index 5ccfd67..83759b9 100644 --- a/definitions/AuthenticationHandlerDefinition.lua +++ b/definitions/AuthenticationHandlerDefinition.lua @@ -10,7 +10,7 @@ local AuthenticationHandlerDefinition = { --- doesn't exist). --- Returns following structure: --- `{password=, privileges=, last_login=}` - ---@type fun(name:string):AuthenticationHandlerGetAuth + ---@type fun(name:string):AuthenticationHandlerGetAuth|nil get_auth = function(name) end, --- Create new auth data for player `name`. diff --git a/minetest_types.lua b/minetest_types.lua index 59341f0..44b84c9 100644 --- a/minetest_types.lua +++ b/minetest_types.lua @@ -203,7 +203,7 @@ function minetest.get_hit_params(groups, tool_capabilities , time_from_last_punc --- [View in lua_api.txt](https://github.com/minetest/minetest/blob/5.4.1/doc/lua_api.txt#L3329-L3338) --- --- @param text_domain string ---- @return fun(str: string, ...) +--- @return fun(str: string, ...):string function minetest.get_translator(text_domain) end --- translates the string `str` with --- the given `textdomain` for disambiguation. The textdomain must match the