While rewriting my VueJs project in typescript, I came across a TypeScript error.
This is a part of the component that has a custom v-model.
An input field i
You can do this:
class YourComponent extends Vue { $refs!: { checkboxElement: HTMLFormElement } someMethod () { this.$refs.checkboxElement.checked } }
From this issue: https://github.com/vuejs/vue-class-component/issues/94