ThomasLeconte / vuetify3-dialog

Vue 3 & Vuetify 3 plugin to create dialogs (confirm, warn, error), toasts or bottom-sheets with Promises anwsers.
https://www.npmjs.com/package/vuetify3-dialog
MIT License
24 stars 8 forks source link

Syntax check error when use the plugin #22

Closed ramseyfeng closed 2 months ago

ramseyfeng commented 2 months ago

IntelliJ throws an error like the screenshot below, according to the type definition, it seems vuetify should be passed in the options?

image
export type PluginOptions = {
  vuetify: Plugin;
  defaults?: {
    dialog?: {
      component?: VDialog['$props'];
      card?: VCard['$props'];
    };
    notify?: VSnackbar['$props'];
    bottomSheet?: VBottomSheet['$props'];
  };
};

File: cypress/test-server/src/plugins/index.ts

I tried it with app.use(Vuetify3Dialog, {vuetify, defaults: {}}).mount('#app'); in my app, it works without any error hint. But when I do the same thing in the test-server, it is still not working...

ThomasLeconte commented 2 months ago

Hi! It has been fixed in last version 1.5.1 !