Open stravi opened 4 years ago
you have to create somewhere in project vue.d.ts
import Vue from 'vue'
import { Notification } from 'vue-native-notification'
declare module 'vue/types/options' {
interface ComponentOptions<V extends Vue> {
notifications?: Notification;
}
}
declare module 'vue/types/vue' {
interface Vue {
$notification: Notification;
}
}
Hello, do you have type files for typescript?
I'm getting this error
Property 'notification' does not exist on type 'VueConstructor<Vue>'
when I trying to show a notification like this:Vue.notification.show(title, { body },{});