Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Typescript issues when using fromAction with svelte-dnd-action #16431

Open
@lts20050703

Description

@lts20050703

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

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp