Version
27.3.0
Steps to reproduce
- create a foo.ts
- put this content in it
import type * as expect from 'expect';
type Foobar = expect.Matchers<{}>;
Expected behavior
no typing issues
Actual behavior

Additional context
It worked before. Seems like a regression introduced in #11949. Before that it was working.
Environment