yeger icon indicating copy to clipboard operation
yeger copied to clipboard

bug: item prop in the #default slot isn't passing the correct type

Open Yizack opened this issue 8 months ago • 1 comments

Affected Packages

  • [ ] @yeger/eslint-config
  • [X] @yeger/vue-masonry-wall
  • [ ] @yeger/vue2-masonry-wall
  • [ ] vecti

Description

Hello! I don't know exactly when I started having this issue and I don't know if this is a bug or I'm missing something, the component works as expected but the item prop in the #default slot isn't passing the correct type on my VSCode using Nuxt

Screenshot 2024-06-22 144101

I noticed that if I create a component using the code from vue-masonry-wall/src/masonry-wall.vue the types work but using the package gives the unknown type so I'm not sure if it's related to the build or something else I'm not doing.

Thanks for the support!

Reproduction

https://github.com/Yizack/masonrywall-repro

Additional context

  • Typescript version: 5.4.5
  • Nuxt version: 3.12.2
  • @yeger/vue-masonry-wall version: 5.0.12
  • Node version: 20.9.0
  • PNPM version: 9.4.0
  • VSCode: 1.90.2
  • Windows 11

Preferences

  • [ ] I want to be assigned to and work on this issue myself

Yizack avatar Jun 22 '24 20:06 Yizack