Intevel / nuxt-directus

🐰 Easily integrate Directus to your Nuxt application.
https://nuxt-directus.de/
MIT License
269 stars 49 forks source link

Promise<any> in readItemsAsync in next versions #250

Closed Nisgrak closed 7 months ago

Nisgrak commented 7 months ago

Version

nuxt-directus-next: v0.0.13

Reproduction Link

https://www.npmjs.com/package/nuxt-directus-next?activeTab=code image image

What is Expected?

The readAsync functions has the correct Generic Type in combination with SDK response

What is actually happening?

Looks like it generate Promise In the code it returns an actual any

sandros94 commented 7 months ago

I see, thanks for reporting

sandros94 commented 7 months ago

While working on this I found a few other things in regard to the current useAsyncData implementation.

Once closed I'll push 0.0.14

sandros94 commented 7 months ago

pushed 0.0.14, feel free to reopen if you see more, related, problems