Skip to content

Commit 75db55d

Browse files
committed
fix: Broken library import & types
1 parent 351a57d commit 75db55d

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

src/index.d.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
import { createRouter } from "./vue-router.common";
2-
import { Route } from './typings/router-service';
3-
4-
export { createRouter, Route };
2+
export { Route, RouteOptions, RouterServiceOptions } from "./typings/router-service";
3+
export { createRouter };

src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import { createRouter } from "./vue-router.common";
2+
export { Route, RouteOptions, RouterServiceOptions } from "./typings/router-service";
3+
4+
export { createRouter };

src/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"name": "nativescript-vue-router-extended",
33
"version": "1.0.7",
44
"description": "NativeScript Vue Router Extended for NativeScript Vue hybrid Apps.",
5-
"main": "vue-router",
5+
"main": "index",
6+
"typings": "index.d.ts",
67
"nativescript": {
78
"platforms": {
89
"android": "7.1.0",

0 commit comments

Comments
 (0)