perf(resolvedTypes): minor performance inmprovement in resolvedTypes