-
-
Notifications
You must be signed in to change notification settings - Fork 68
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
"const" declarations from .d.ts modules should be marked with "declare" #24
Comments
the plugin will use whatever code is provided. |
@Swatinem shouldn't the plugin add the As I understand it, rollup-plugin-dts is moving the |
I think by now I have code that properly adds the missing attributes. Do you have a specific snippet that is failing? |
@Swatinem sure, here's a minimal reproduction: https://github.com/cspotcode/repros/tree/Swatinem/rollup-plugin-dts/24 Thanks for taking a look. |
Ah thanks for the repro case, this was indeed straight forward to fix ;-) |
Repro: https://github.com/aleclarson/repro/tree/rollup-dts-1
I also tested with
.ts
modules, and that works fine. The problem is only with.d.ts
modules.Note: This also happens with
function
exports.The text was updated successfully, but these errors were encountered: