Skip to content
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

Type 'TimeRanges' is missing the following properties from type 'SvelteMediaTimeRange[]' #2272

Closed
chtibizoux opened this issue Jan 26, 2024 · 0 comments
Labels
bug Something isn't working Fixed Fixed in master branch. Pending production release.

Comments

@chtibizoux
Copy link

chtibizoux commented Jan 26, 2024

Describe the bug

VSCode don't use Svelte type but default html type and throw :
Type 'TimeRanges' is missing the following properties from type 'SvelteMediaTimeRange[]': pop, push, concat, join, and 34 more.

Reproduction

<script lang="ts">
	import type { SvelteMediaTimeRange } from "svelte/elements";
	let buffered: SvelteMediaTimeRange[] | undefined;
</script>

<!-- svelte-ignore a11y-media-has-caption -->
<video bind:buffered />

Expected behaviour

No typing error

System Info

  • OS: Windows
  • IDE: VSCode
  • Svelte for VS Code: v108.2.1
  • svelte-check: 3.6.0
  • typescript: 5.0.0
@chtibizoux chtibizoux added the bug Something isn't working label Jan 26, 2024
dummdidumm added a commit that referenced this issue Feb 7, 2024
buffered/played/seekable exist on the DOM element but their types are different to the ones Svelte uses for its bindings - adjust them accordingly.
#2272
@dummdidumm dummdidumm added the Fixed Fixed in master branch. Pending production release. label Feb 7, 2024
dummdidumm added a commit that referenced this issue Feb 7, 2024
buffered/played/seekable exist on the DOM element but their types are different to the ones Svelte uses for its bindings - adjust them accordingly.
#2272
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Fixed Fixed in master branch. Pending production release.
Projects
None yet
Development

No branches or pull requests

2 participants