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"));
},
}