TypeScript Unexpected token, A constructor, method, accessor or property was expected. Error in IDE

31 views Asked by At

I have this function it works as it should. But my Code Editor says: TypeScript Unexpected token, A constructor, method, accessor or property was expected.

  export default class ModalBase extends Vue {
    @Prop({ required: true }) readonly showCloseBUtton: boolean;
    
    @Emit () close() {}
    mounted () { 
        this.$nextTick().then(() => document.body.classList.add("has-overflow"));
        },
    
        destroyed () { 
        this.$nextTick().then(() => document.body.classList.add("has-overflow"));
        },
}
0

There are 0 answers