nuxt-modules / cloudinary

Cloudinary Module for Nuxt
https://cloudinary.nuxtjs.org
MIT License
245 stars 31 forks source link

type issue in CldImage #203

Closed huang-julien closed 1 month ago

huang-julien commented 3 months ago

Version

@nuxtjs/cloudinary 2.5.1-2.7.0 nuxt: 3.11.1

Reproduction Link

https://github.com/nuxt-modules/cloudinary/blob/main/src/runtime/components/CldImage.vue

Steps to reproduce

You can run a typecheck in a project using CldImage or intellisense will highlight an error in https://github.com/nuxt-modules/cloudinary/blob/main/src/runtime/components/CldImage.vue at https://github.com/nuxt-modules/cloudinary/blob/e2d04a36b1c128027d8f6756cc70260d726610d8/src/runtime/components/CldImage.vue#L116 and https://github.com/nuxt-modules/cloudinary/blob/e2d04a36b1c128027d8f6756cc70260d726610d8/src/runtime/components/CldImage.vue#L154

What is Expected?

Some field values should be constrained to only some string values

What is actually happening?

Baroshem commented 3 months ago

Hey Julien,

Thanks for reporting this issue. I will work on it in the upcoming days :)