fix(scraper): produce Type_Info
This commit is contained in:
parent
5709219a79
commit
719aa36273
|
@ -18,13 +18,13 @@ end
|
|||
|
||||
local function parse_parameter_types(parameter_type: string): List<Type_Info.Type_Info>
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue