@remotehq/vue-notification
Version:
Vue.js Notification Library
28 lines (23 loc) • 582 B
TypeScript
import { PluginFunction } from 'vue';
export interface NotificationOptions {
title?: string;
text?: string;
type?: string;
group?: string;
duration?: number;
speed?: number;
data?: object;
clean?: boolean;
}
declare module 'vue/types/vue' {
interface Vue {
$notify: (options: NotificationOptions | string) => void;
}
interface VueConstructor {
notify: (options: NotificationOptions | string) => void;
}
}
declare class VueNotification {
static install: PluginFunction<never>;
}
export default VueNotification;