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

SwiperSlide was not defined type for let:data with selve + typescript #5349

Closed
6 tasks done
Gernii opened this issue Jan 8, 2022 · 0 comments
Closed
6 tasks done
Labels

Comments

@Gernii
Copy link

Gernii commented Jan 8, 2022

Check that this is really a bug

  • I confirm

Reproduction link

https://github.com/litahung/cotaisvelte

Bug description

<Swiper>
  <SwiperSlide let:data={{ isActive }}>
    <div>Current slide is { isActive ? 'active' : 'not active' }</div>
  </SwiperSlide>
</Swiper>

this is for javascript, but in typescript, swiperslide was not defined type for let:data , so i got error Property 'data' does not exist on type '{}'
source code is in src/route/index.svelte
Untitled

Expected Behavior

No response

Actual Behavior

No response

Swiper version

7.3.2

Platform/Target and Browser Versions

Windows

Validations

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
  • Make sure this is a Swiper issue and not a framework-specific issue

Would you like to open a PR for this bug?

  • I'm willing to open a PR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant