Skip to content

Missing complete transition event types #857

@NickClark

Description

@NickClark

Describe the bug
When trying to bind to transition events on an HTML element in Typescript, only ontransitionend is available. If you ignore the type errors, it runs fine.

To Reproduce

<div
  on:transitionstart={() => {
    console.log("start");
  }}
  on:transitioncancel={() => {
    console.log("cancel");
  }}
  on:transitionend={() => {
    console.log("end, I'm the only one that passes type checking");
  }}></div>

Expected behavior
All three of the above should be allowed.

System (please complete the following information):

  • OS: Windows
  • IDE: VSCode
  • Plugin/Package: Svelte for VSCode

Metadata

Metadata

Assignees

No one assigned

    Labels

    FixedFixed in master branch. Pending production release.bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions