YsarocK / nuxt-appwrite

Nuxt 3 module to implement Appwrite
https://nuxt-appwrite.etiennemoureton.fr
MIT License
23 stars 5 forks source link

No typescript types #63

Closed mariusbolik closed 1 year ago

mariusbolik commented 1 year ago

Describe the bug I don't have typescript types after installing the library.

Expected behavior Types should be visible when hovering an entity, like in the official sdk.

Screenshots

Bildschirmfoto 2023-07-21 um 16 01 40
YsarocK commented 1 year ago

Hi,

Have you got a repo I can investigate from ?

Thanks a lot, Have a nice day, Etienne

mariusbolik commented 1 year ago

Hello @YsarocK,

I added you to the repo. I would appreciate it if you take a look. Code is in /pages/_appwrite.vue

Edit: It's in branch feature/appwrite

Kind Regards, Marius

YsarocK commented 1 year ago

Thanks a lot ! Will look at it tomorrow if you don't see any issue.

mariusbolik commented 1 year ago

Thank you. The useAppwrite.d.ts declares it as any:

/**
 * Use the current Appwrite instance
 * @returns Client, Databases, Account, Storage, Avatars, Functions, Role, Permission
 */
declare const useAppwrite: () => any;
export default useAppwrite;
YsarocK commented 1 year ago

Fixed in v1.6.7!