fix(scraper): produce Type_Info
ci/woodpecker/pr/build Pipeline was successful Details
ci/woodpecker/pr/docker-build Pipeline was successful Details
ci/woodpecker/pr/lint Pipeline was successful Details

This commit is contained in:
Aire-One 2022-12-14 18:47:01 +01:00
parent 5709219a79
commit 719aa36273
1 changed files with 2 additions and 2 deletions

View File

@ -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