Skip to content

Commit 7adad31

Browse files
khawarizmusrigor789
authored andcommitted
fix: add registerElement to NativeScriptVueConstructor (nativescript-vue#413)
* add registerElement to NativeScriptVueConstructor Fix: `property 'registerElement' does not exist on type 'NativeScriptVueConstructor'.` Currently, the function type is defined but was not included in the constructor. * updated in contrast to nativescript-vue#409 updated to the latest master changes
1 parent 265f416 commit 7adad31

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

index.d.ts

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,16 @@ export interface NativeScriptVue<V = View> extends Vue {
4545
export interface NativeScriptVueConstructor extends VueConstructor<NativeScriptVue> {
4646
navigateTo: navigateTo
4747
navigateBack: () => void
48+
/**
49+
* Registers NativeScript Plugin.
50+
* @param elementName Name of the element to use in your template
51+
* @param resolver function to register the element
52+
* @param meta meta associated with the element
53+
*/
4854
registerElement: (elementName: string, resolver: Function, meta?: any) => void
4955
}
5056

5157
export const NativeScriptVue: NativeScriptVueConstructor
5258

53-
export default NativeScriptVue;
54-
5559
// export as namespace NativeScriptVue;
56-
57-
/**
58-
* Registers NativeScript Plugin.
59-
* @param elementName Name of the element to use in your template
60-
* @param resolver function to register the element
61-
* @param meta meta associated with the element
62-
*/
63-
export function registerElement(elementName: string, resolver: Function, meta?: any): void;
60+
export default NativeScriptVue;

0 commit comments

Comments
 (0)