-
Notifications
You must be signed in to change notification settings - Fork 1
fix: component type declaration #5
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
base: main
Are you sure you want to change the base?
Conversation
brandodo
commented
Apr 24, 2025
- Add component typing for Svelte 5
Thanks, Brandon. While testing your changes in a Svelte 4 project, I noticed the Cartesian's Without these changes, what's the impact? In a Svelte 5 project, I don't see deprecation warnings for I can also help add feature parity to |
@theetrain getting this error when working with a component using Svelte 5 syntax:
|
Please share a full code example showing how |
Occurs during svelte-check run
|
- Use `Component` type when Svelte 5 is present, otherwise fallback to `ComponentType` - Include Svelte 5 in `peerDependencies` - Patch dependencies
- HTML div attributes threw false positives that required overrides. Details: sveltejs/svelte#13959 (comment)
Hi Brandon, I pushed some additional fixes to your branch, please try it out in your project:
Summary of my changes:
References: |
@theetrain Tried the steps outlined, however, am still getting type error. Condition for the type seems to evaluate to the truthy result. |
What are your installed package versions for the following? npm ls svelte svelte-check typescript svelte-cartesian Also please share a screenshot of the error. While I investigate this and follow up, you can temporarily install your commit as a workaround if it unblocks you: npm i -D git://github.com/theetrain/svelte-cartesian.git#d9c3edbd21f66d4ed3ac0683ae9f8551e039dd51 |