? @[TOC](vue3+ts獲取子組件的ref類型)
? # vue3+ts獲取子組件的ref類型
? ```typescript
? ? import Child from './child.vue'
? ? setup() {
? ? ? ...
? ? ? const child = ref<InstanceType<typeof Child>>()
? ? ? // const child1 = ref() as Ref<InstanceType<typeof Child>>
? ? ? const child2 =? ref<NonNullable<Child>>(null!)
? ? ? // 在使用child.value.xxx 的時候就會有代碼提示
? ? ? ...
? ? }
? ```
? ##### 如果有其他方法歡迎補(bǔ)充