Typescript: Property ‘foo’ does not exist on type ‘Vue’

export default Vue.extend({
name: 'justaname',
data() {
return {
currentSlide: 0 as number
};
},
computed: {
internalOpen: {
get(): boolean {
return this.value;
},
set(val) {
(this as any).$emit('input', false);
},
},
},
});
set(val: boolean) {
(this as any).$emit('input', false);
},

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store