-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
declare module
inside .d.ts
does not get picked up by Deno
#23007
Comments
There's also an older (closed) issue: #15132 |
currently running on Deno 2.0.6. This is still an issue for me. My two use cases are:
I used to just declare these in a custom types.d.ts. Now it's just errors :( |
Still persistent in latest Deno version ( |
Same on 2.1.2. I wasted few hours trying to fix it today :( |
some types from esm.sh are broken by the issue too. declare module 'highlight.js/private' {
// ...
}
declare module 'https://esm.sh/highlight.js@11.9.0/types/index.d.ts' {
import { KeywordDict } from "highlight.js/private";
// ...
} error output: error: Relative import path "highlight.js/private" not prefixed with / or ./ or ../ _ Deno 2.1.4 |
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, somewhere in my project:This behavior is correct because scss does not have a valid default export.
However, if I now create an index.d.ts file in the root of my project with the following content, the error still occurs. Deno simply ignores this file.
or
Neither of the two contents work. Also adding the
.d.ts
file to thetypes
array in thecompilerOptions
did not help.It would be really great if this error could be fixed or if this could be added as a feature.
1.41.3
Link to the discussion on discord.
The text was updated successfully, but these errors were encountered: