Skip to content
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

Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier. #14

Open
jakobrosenberg opened this issue Oct 6, 2020 · 1 comment

Comments

@jakobrosenberg
Copy link

Getting this error when running tsc in a project that depends on `rollup-plugin-svelte-hot.

../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/rollup-plugin-svelte-hot/index.d.ts:10:1 - error TS1046: Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier.    

10 class CssWriter {
   ~~~~~
@rixo
Copy link
Owner

rixo commented Oct 21, 2020

Aren't you getting the same thing with the official plugin? The types declaration essentially comes from there...

We've just merged a more recent version, can you confirm if you still get this with rollup-plugin-svelte-hot@next (0.11.0-1)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants