mirror of
https://github.com/denoland/deno.git
synced 2025-09-25 03:42:30 +00:00

This commit makes `deno check` ignore `Cannot find module` diagnostic if the missing module specifier matches one of ambient module pattern. (For example if there's `declare module "*.svg" { ... }` declaration in one of d.ts files, importing of `<any>.svg` doesn't cause type error with this change. This is necessary for passing the type checking of default vite template.) --------- Co-authored-by: David Sherret <dsherret@gmail.com>
2 lines
49 B
TypeScript
2 lines
49 B
TypeScript
import logo from "/logo.svg";
|
|
console.log(logo);
|