rename 'resolve' to 'types'