[Vuejs]-TypeScript in Vue & WebStorm

0👍

You need to use Ref declaration from @vue/reactivity/dist/reactivity.d.ts to declare the type left of assignment.

You have imported it but not used it (not sure if you need to even import it in Nuxt?):

import { Ref } from 'vue'

const showModel: Ref<boolean> = ref(false)

Leave a comment