resolve type aliases