title: Definitions of identifiers conflict with those in another file
body: <p>I'm updating an old component from Typescript 6 to 8. I've updated the Jasmine dependencies in the <code>package.json</code>, but now I'm getting an error: </p>
  
  <blockquote>
    <p>"Definitions of the following identifiers conflict with those in another file: </p>
    
    <p>ImplementationCallback, ExpectedRecursive, Expected,
    SpyObjMethodNames, CustomEqualityTester, CustomMatcherFactory,
    ExpectationFailed, SpecFunction, SpyObj, jasmine".</p>
  </blockquote>
  
  <p>The two conflicting files are the following:</p>
  
  <pre><code>@types/jasmine/index.d.ts
  
  @types/jasmine/ts3.1/index.d.ts
  </code></pre>
  
  <p>I've already tried deleting the cache as well as deleting node_modules and package-lock then reinstalling everything. I've tried deleting either file and using the other as the only index.d.ts file, but then I get the error "Cannot find type definition file for 'jasmine'."</p>
  
  <p>Does anyone have any other suggestions?</p>