DenoDDeno
Powered by
MqxM
Deno•2y ago•
34 replies
Mqx

`declare module` doesn’t work

I was trying to declare a module like so:

declare module "*.scss";
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;
}
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
`declare module` inside `.d.ts` does not get picked up by Deno · Is...
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...
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,944Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

`deno.disablePaths` doesn't work
babakfpBbabakfp / help
3y ago
npm:undici doesn't work
神神神 / help
3y ago