Skip to content

Commit ccf795e

Browse files
authored
chore: Update TypeScript support Readme
1 parent 77411a7 commit ccf795e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,12 @@ export default {
182182
| navigatedFrom | - | This event is tricky to control for developers. There is no exact mapping of it in the router. For store state cleanup use build-in meta dispatcher instead. For component state you could opt for using `beforeRouteLeave()`. |
183183

184184
## TypeScript Support
185-
If you need a TS support and it's not detected in your project for some reason, you can copy paste content of [typings/shims.vue.d.ts](https://github.com/MattCCC/nativescript-vue-router-extended/blob/master/src/typings/shims-vue.d.ts) file into your typings/ directory so to bring proper support in .vue files.
185+
If you need a TS support and it's not detected in your project for some reason, you can use [typings/shims.vue.d.ts](https://github.com/MattCCC/nativescript-vue-router-extended/blob/master/src/typings/shims-vue.d.ts) to bring proper support in .vue files.
186+
187+
Assuming that your node_modules/ directory is on same level, you can specify following line in your `references.d.ts` file:
188+
```
189+
/// <reference path="./node_modules/nativescript-vue-router-extended/typings/shims-vue.d.ts" />
190+
```
186191

187192
## API & Limitations
188193

0 commit comments

Comments
 (0)