Currently working with Vue.js and TypeScript, I've managed to create a DatePicker. However, I'm facing issues when trying to build the project due to TypeScript errors.
Below is a snippet from my DatePicker TypeScript file:
import Vue from "vue"
export default Vue.extend({
data: () => ({
message1: "",
date: null,
menu: false
}),
watch: {
menu(val) {
val && setTimeout(() => (this.$refs.picker.activePicker = 'YEAR'))
}
},
methods: {
save(date){
this.$refs.menu.save(date)
},
}
})
Errors are present in the date variable, save method, and ActivePicker.
Does anyone have any suggestions on how to properly "import" them into my DatePicker.ts file? Also, I'm organizing my code across multiple files like so:
DatePicker.vue
DatePicker.html
DatePicker.ts
Thank you for any assistance!
Antoine