Something like that. Or you could define the alias somewhere else in the code:
B = NamedTuple{(:re, :im),Tuple{Array{Float32,1},Array{Float32,1}}}
function example2(input::StructArray{Complex{Float32},1,B,Int64}) where B
return 1
end
or define a type alias for the whole thing:
StructCpuArray = StructArray{Complex{Float32},1,NamedTuple{(:re, :im),Tuple{Array{Float32,1},Array{Float32,1}}},Int64}
function example3(input::StructCpuArray)
return 1
end