-
Notifications
You must be signed in to change notification settings - Fork 7
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
A 'declare' modifier cannot be used in an already ambient context #49
Comments
Can you give me an example of the input, the output and what you expect it should look like? |
https://github.com/whitlockjc/json-refs is a perfect example. |
Okay, I will have a look tomorrow |
I could easily reproduce this with the following jsdoc /**
* @module myModule
*/
/**
* @interface myInterfaceInsideAModule
* @memberof module:myModule
*/ which generates the following output declare module 'myModule' {
declare interface myInterfaceInsideAModule {
}
} The output should look like declare module 'myModule' {
interface myInterfaceInsideAModule {
}
} (the keyword "declare" is omitted for the interface) |
Good news: It can be fixed by just upgrading dts-dom |
@whitlockjc published |
|
As reported in whitlockjc/json-refs#140, it seems like a
declare
in amodule
,namespace
, ... causes the error thrown in the title. whitlockjc/json-refs#143 shows how to fix this and has some details.The text was updated successfully, but these errors were encountered: