fix: fixed generator to correctly resolve type in parts