MqxM
Deno2y ago
34 replies
Mqx

`declare module` doesn’t work

I was trying to declare a module like so:

declare module "*.scss";


But this simply doesn’t have any effect whatsoever.

I also tried this:

declare module "*.scss" {
  const content: string;
  export default content;
}


None of this worked. I don’t know if .d.ts file are simply ignored by Deno or if this is a bug, or I have done something wrong.

This is the GitHub Issue: https://github.com/denoland/deno/issues/23007

I appreciate any help 👍🏻 Thanks
GitHub
Hey, I currently have a problem when importing non js/ts files inside a js/ts file. deno-ts shows an error with non-resolvable imports for non-js/ts files. For example i have this index.ts files, s...
`declare module` inside `.d.ts` does not get picked up by Deno · Is...
Was this page helpful?