use type alias in port definition