Skip to content

Cannot export a type from module script element #6185

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

Closed
joseDaKing opened this issue Apr 11, 2021 · 1 comment
Closed

Cannot export a type from module script element #6185

joseDaKing opened this issue Apr 11, 2021 · 1 comment

Comments

@joseDaKing
Copy link

Describe the bug
I am using typescript with svelte and I cannot export a type from a module script element.

Expected behavior
It should be possible to export a type from a module script

Information about your Svelte project:

  • Svelte version: 3.29.0

Severity
The issue is actually not that of a big deal I could export the type from a regular typescript file.

@dummdidumm
Copy link
Member

dummdidumm commented Apr 11, 2021

I assume that you are talking about importing a type exported from <script context="module"> inside a .ts file. If so, that's a duplicate of sveltejs/language-tools#550

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