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

Export types from create-svelte #7053

Closed
NickantX opened this issue Sep 27, 2022 · 0 comments · Fixed by #7111
Closed

Export types from create-svelte #7053

NickantX opened this issue Sep 27, 2022 · 0 comments · Fixed by #7111

Comments

@NickantX
Copy link

Describe the problem

create-svelte does not export its type definitions, which makes it a bit of a pain to work with in a TypeScript project. It would be helpful for to define types for create-svelte, especially since there is already /types/internal.d.ts.

Describe the proposed solution

Refactor /types/internal.d.ts to also include a declaration for the create function, and reference this file in the package.json for create-svelte.

Alternatives considered

Manually including a type declaration file, and copy-pasting from internal.d.ts

Importance

would make my life easier

Additional Information

No response

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

Successfully merging a pull request may close this issue.

2 participants