We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
RestProps
If Sveld infers that $$restProps are passed to multiple elements, it uses an intersection & type.
$$restProps
&
However, this produces a TypeScript error in the interface.
type RestProps = SvelteHTMLElements["ul"] & SvelteHTMLElements["ol"]; export interface RecursiveListProps extends RestProps {
A breaking change and fix would be to use a type alias instead of interface for the generated props.
E.g.,
export type RecursiveListProps = RestProps & {
The text was updated successfully, but these errors were encountered:
d9cf04a
metonym
Successfully merging a pull request may close this issue.
If Sveld infers that
$$restProps
are passed to multiple elements, it uses an intersection&
type.However, this produces a TypeScript error in the interface.
A breaking change and fix would be to use a type alias instead of interface for the generated props.
E.g.,
The text was updated successfully, but these errors were encountered: