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
Is your feature request related to a problem? Please describe.
I'm developing a custom element in Svelte and when I specify 'part' attribute, I get an error on the VS Code.
Type '{ part: string; }' is not assignable to type 'HTMLProps<HTMLDivElement>'. Property 'part' does not exist on type 'HTMLProps<HTMLDivElement>'.
However, the compilation finished successfully and 'part' attribute works.
Describe the solution you'd like
Add 'part' property to HTMLAttributes interface, like this:
interface HTMLAttributes<T extends EventTarget> extends DOMAttributes<T> { ... part?: string; }
When I try to apply it to svelte-jsx.d.ts, which is used by Svelte for VS Code, the error disappear.
Describe alternatives you've considered No.
Additional context No.
I am not a native English speaker. Sorry if my explanation is wrong.
The text was updated successfully, but these errors were encountered:
(fix) add part attribute
b5e0785
#703
No branches or pull requests
Is your feature request related to a problem? Please describe.
I'm developing a custom element in Svelte and when I specify 'part' attribute, I get an error on the VS Code.
However, the compilation finished successfully and 'part' attribute works.
Describe the solution you'd like
Add 'part' property to HTMLAttributes interface, like this:
When I try to apply it to svelte-jsx.d.ts, which is used by Svelte for VS Code, the error disappear.
Describe alternatives you've considered
No.
Additional context
No.
I am not a native English speaker. Sorry if my explanation is wrong.
The text was updated successfully, but these errors were encountered: