yariksav / vuetify-dialog

Easy dialogs in Vuetify.js framework
MIT License
195 stars 48 forks source link

Missing definitions type for Typescript #98

Closed moifort closed 3 years ago

moifort commented 3 years ago

Thanks for your lib!

Error

Correct me if I am wrong but I think your type file types/index.d.ts is not up to date. Typescript don't find showAndWait method.

 ERROR  ERROR in components/client/ClaimForm.vue:368:28                                                                                                                                                                                                                                                                                                    09:03:22
TS2339: Property 'showAndWait' does not exist on type 'VuetifyDialog'.
    366 |         debugger
    367 |         // tslint:disable-next-line
  > 368 |         await this.$dialog.showAndWait(SuccessDialog, { claimId: result })
        |                            ^^^^^^^^^^^
    369 |       } catch (error) {

Version

"vuetify-dialog": "2.0.10"

Workarround

Add // @ts-ignore

yariksav commented 3 years ago

fixed in 2.0.11 by https://github.com/yariksav/vuetify-dialog/commit/f75fe2ae1b98e795bba607551c9c49d08ad11be6