Renaming Library.resolve to resolveType.