Skip to content

Commit 4b2b0ba

Browse files
committed
feat: add typings
2 parents d840d3c + ce698b8 commit 4b2b0ba

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)