Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork4.6k
Open
Labels
Description
Describe the bug
It looks likefromAction
doesn't know thatsvelte-dnd-action
addedonconsider
andonfinalize
events to the element.
To be clear, everything still works, it's just TypeScript/svelte-check is screaming thatonconsider
andonfinialize
doesn't exist
(This issue is non-existent if I just use the action as-is withuse:
, as in, TS/Svelte doesn't scream thatonconsider
andonfinialize
doesn't exist)
Reproduction
https://www.sveltelab.dev/391b6oi0q1zn0ke
Logs
❯ npx svelte-checkLoading svelte-checkin workspace: /home/qo5ip4we0aj4vrkeetv8swp3pbyxe1-fmt4Getting Svelte diagnostics.../home/qo5ip4we0aj4vrkeetv8swp3pbyxe1-fmt4/src/routes/+page.svelte:22:2Error: Object literal may only specify known properties, and'"onconsider"' does not existintype'HTMLProps<"section", HTMLAttributes<any>>'. (ts) {@attachfromAction(dndzone, () => ({ items, flipDurationMs }))} onconsider={handleDndConsider} onfinalize={handleDndFinalize}====================================svelte-check found 1 error and 0 warningsin 1 file
System Info
❯ npx envinfo --system --npmPackages svelte,rollup,webpack --binaries --browsersNeed to install the following packages:envinfo@7.14.0Ok to proceed? (y) y System: OS: Linux 5.0 undefined CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz Memory: 0 Bytes / 0 Bytes Shell: 1.0 - /bin/jsh Binaries: Node: 20.19.1 - /usr/local/bin/node Yarn: 1.22.19 - /usr/local/bin/yarn npm: 10.8.2 - /usr/local/bin/npm pnpm: 8.15.6 - /usr/local/bin/pnpm npmPackages: svelte: ^5 => 5.36.7
Severity
annoyance