Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: deno check doesn't respect compilerOptions.types #28370

Open
marvinhagemeister opened this issue Mar 3, 2025 · 1 comment
Open

Bug: deno check doesn't respect compilerOptions.types #28370

marvinhagemeister opened this issue Mar 3, 2025 · 1 comment

Comments

@marvinhagemeister
Copy link
Contributor

In a vite project I've added a global.d.ts to compilerOptions.types with the following content:

declare module "*.module.css" {
  const css: Record<string, string>;
  export default css;
}

This is picked up in the LSP, but seemingly not when running deno check.

Steps to reproduce

  1. Clone https://github.com/marvinhagemeister/deno-css-module-check-bug
  2. Run deno check main.ts

Version: Deno 2.2.2

@nathanwhit
Copy link
Member

The issue is actually the ambient module declaration. Basically this needs #27855 but for check (that PR was only the LSP)

@nathanwhit nathanwhit reopened this Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants