Skip to content

Commit ce698b8

Browse files
championswimmerrigor789
authored andcommitted
add typedefinitions for easier usage on Typescript (nativescript-vue#181)
1 parent 7a3fe40 commit ce698b8

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

index.d.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Typings for NativeScript-Vue
2+
declare module 'nativescript-vue' {
3+
// import vue.js typings
4+
import Vue from 'vue';
5+
6+
// creat a nativescript vue class that extends vue.js
7+
class NativeScriptVue extends Vue {
8+
/**
9+
* Registers NativeScript Plugin.
10+
* @param elementName Name of the element to use in your template
11+
* @param resolver function to register the element
12+
*/
13+
static registerElement(elementName: string, resolver: Function);
14+
}
15+
16+
export = NativeScriptVue;
17+
}

0 commit comments

Comments
 (0)