File tree 2 files changed +15
-13
lines changed
2 files changed +15
-13
lines changed Original file line number Diff line number Diff line change 1
1
// Typings for NativeScript-Vue
2
2
declare module 'nativescript-vue' {
3
- // import vue.js typings
4
- import Vue from 'vue' ;
3
+ // import vue.js typings
4
+ import Vue from 'vue' ;
5
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
- }
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
+ * @param meta meta associated with the element
13
+ */
14
+ static registerElement ( elementName : string , resolver : Function , meta ?: any ) ;
15
+ }
15
16
16
- export = NativeScriptVue ;
17
+ export = NativeScriptVue ;
17
18
}
Original file line number Diff line number Diff line change 4
4
"description" : " NativeScript and Vue integration" ,
5
5
"main" : " dist/index.js" ,
6
6
"files" : [
7
- " dist/index.js"
7
+ " dist/index.js" ,
8
+ " index.d.ts"
8
9
],
9
10
"scripts" : {
10
11
"test" : " jest" ,
You can’t perform that action at this time.
0 commit comments