Skip to content

Commit 6e12ecd

Browse files
ArthurNf
authored andcommitted
Typescript support: extend Vue interfaces (#79)
Thanks!!!
1 parent b7bdba6 commit 6e12ecd

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/types/vue.d.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/**
2+
* Extends interfaces in Vue.js
3+
*/
4+
5+
import Vue from 'vue';
6+
import VueWait from './index';
7+
8+
declare module 'vue/types/vue' {
9+
interface Vue {
10+
$wait: VueWait;
11+
}
12+
}
13+
14+
declare module 'vue/types/options' {
15+
interface ComponentOptions<V extends Vue> {
16+
wait?: VueWait;
17+
}
18+
}

0 commit comments

Comments
 (0)