Open EmilienLeroy opened 4 years ago
For example, my app component with typescript and annotations :
<template>
<div>
<v-app id="app">
<transition :name="transitionName" mode="in-out">
<router-view></router-view>
</transition>
</v-app>
<notifications-vue></notifications-vue>
</div>
</template>
<script lang="ts">
import { Vue, Component, Watch } from 'vue-property-decorator';
import NotificationsVue from '@/components/Notifications.vue';
import { Location } from 'vue-router';
/**
* @component
*/
@Component({
components: {
NotificationsVue,
},
})
export default class App extends Vue {
/**
* @property {string} transitionName - name of the transition for the route
*/
private transitionName: string = '';
/**
* This method will set the transition to use depending on the new route.
* @param {Location} to - to this route
* @param {Location} from - from this route
* @returns {void}
*/
@Watch('$route')
public switchTransition(to: Location, from: Location): void {
if (from.path === '/login' || to.path === '/login') {
if (from.path === '/login') this.transitionName = 'slide-top';
if (to.path === '/login') this.transitionName = 'slide-bottom';
} else {
this.transitionName = '';
}
}
}
</script>
Hi,
I use vue with typescript and annotations. I use these lib for the annotations :
When I run jsdoc, an error appear :
This is my jsdoc config :
When i remove vue from this line :
This work perfectly with all my ts files. i'dont know if this trouble is due at the annotation or at my vue files with typescript.
Version