diff --git a/nativescript-vue-router.d.ts b/nativescript-vue-router.d.ts new file mode 100644 index 0000000..07fff7b --- /dev/null +++ b/nativescript-vue-router.d.ts @@ -0,0 +1,14 @@ +// Typings for NativeScript augmentations to Vue-Router + +// Import vue router so we can augment it's Router Options. +import * as VueRouter from 'vue-router'; +declare module 'vue-router/types/router' { + + interface RouterOptions { + /** + * NativeScript option + * switches the router to use the navigation stack to navigate between pages + */ + pageRouting?: boolean; + } +}