diff --git a/src/awesomewm.d.tl/scraper/module_doc.tl b/src/awesomewm.d.tl/scraper/module_doc.tl index 81e58dd..ac1d1c8 100644 --- a/src/awesomewm.d.tl/scraper/module_doc.tl +++ b/src/awesomewm.d.tl/scraper/module_doc.tl @@ -18,13 +18,13 @@ end local function parse_parameter_types(parameter_type: string): List if parameter_type == "" then - local type_info: Type_Info.Type_Info = { name = "any" } + local type_info: Type_Info.Type_Info = Type_Info("any" ) return List({ type_info }) end return stringx.split(parameter_type, " or "):map( function(type_name: string): Type_Info.Type_Info - return { name = utils.sanitize_string(type_name) } + return Type_Info(utils.sanitize_string(type_name)) end ) end