Part of #4445. Found by @camc314.
import type { mySchema } from './my-schema';
function test(arg: ReturnType<typeof mySchema>) {
// ^^^^^^^^^^^^^^^ should be a `Type` reference
arg;
}
test('');
Note that non-type imports work as expected:
import { mySchema } from './my-schema';
function test(arg: ReturnType<typeof mySchema>) {
arg;
}
test('');
Screenshots
Incorrect:

Correct:
