initial commit
This commit is contained in:
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
/**
|
||||
* This line is necessary to declare all *.png imports as type any
|
||||
*/
|
||||
declare module '*.png'
|
||||
Vendored
+27
@@ -0,0 +1,27 @@
|
||||
import Vue from 'vue';
|
||||
|
||||
declare module 'vue/types/vue' {
|
||||
interface Vue {
|
||||
$notifySuccess: (title: string, text: string, duration?: number) => void;
|
||||
$notifyError: (title: string, text: string, duration?: number) => void;
|
||||
$notifyInfo: (title: string, text: string, duration?: number) => void;
|
||||
$notifyWarning: (title: string, text: string, duration?: number) => void;
|
||||
|
||||
$notifySuccessSimplified: (key: string, duration?: number) => void;
|
||||
$notifyErrorSimplified: (key: string, duration?: number) => void;
|
||||
$notifyInfoSimplified: (key: string, duration?: number) => void;
|
||||
$notifyWarningSimplified: (key: string, duration?: number) => void;
|
||||
}
|
||||
|
||||
interface VueConstructor {
|
||||
notifySuccess: (title: string, text: string, duration?: number) => void;
|
||||
notifyError: (title: string, text: string, duration?: number) => void;
|
||||
notifyInfo: (title: string, text: string, duration?: number) => void;
|
||||
notifyWarning: (title: string, text: string, duration?: number) => void;
|
||||
|
||||
notifySuccessSimplified: (key: string, duration?: number) => void;
|
||||
notifyErrorSimplified: (key: string, duration?: number) => void;
|
||||
notifyInfoSimplified: (key: string, duration?: number) => void;
|
||||
notifyWarningSimplified: (key: string, duration?: number) => void;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user