Skip to content

Property 'playbackRate' does not exist on type 'HTMLProps<HTMLVideoElement>' #500

@martingraf4

Description

@martingraf4

Describe the bug

Binding playbackRate on a video element results in the following error (when running svelte-check): Error: Type '{ playbackRate: number; }' is not assignable to type 'HTMLProps<HTMLVideoElement>'. Property 'playbackRate' does not exist on type 'HTMLProps<HTMLVideoElement>'. (ts)

To Reproduce

<script lang="ts">
  let playbackRate: number;
</script>

<video bind:playbackRate>
  <track kind="captions" />
</video>

Expected behavior

No error

System:

  • OS: Windows
  • IDE: VSCode
  • Plugin/Package: svelte-check

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