renamed relatedTypes to typeResolver