Version: Deno 2.7.6
// @ts-expect-error
import { foo } from 'asdfsdf'
foo
> deno check asdf.ts
Check asdf.ts
TS2307 [ERROR]: Import "asdfsdf" not a dependency
hint: If you want to use the npm package, try running `deno add npm:asdfsdf`
at file:///C:/Users/user/project/asdf.ts:2:21
error: Type checking failed.
use case: this import is only confitionally available
Version: Deno 2.7.6
use case: this import is only confitionally available