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

Rest.svelte clashes with internal RestProps type #147

Closed
metonym opened this issue Oct 27, 2024 · 0 comments · Fixed by #148
Closed

Rest.svelte clashes with internal RestProps type #147

metonym opened this issue Oct 27, 2024 · 0 comments · Fixed by #148
Labels
bug Something isn't working

Comments

@metonym
Copy link
Collaborator

metonym commented Oct 27, 2024

Edge case: a component named Rest.svelte can clash with the internal RestProps type.

E.g.,

type RestProps = SvelteHTMLElements["li"];

// The <Component>Props type
export interface RestProps extends RestProps {}

One solution is to adopt an idea similar to #138 to prefix internal (non-exported) types with $.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant