mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 20:29:11 +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>
9 lines
217 B
TypeScript
9 lines
217 B
TypeScript
declare module "*.svg" {
|
|
const content: string;
|
|
export default content;
|
|
}
|
|
declare module "*.module.css" {
|
|
const classes: { readonly [key: string]: string };
|
|
export default classes;
|
|
}
|
|
declare module "*.css" {}
|