Vue Guideline: TypeScript — Type template refs. Description: Proper typing for DOM refs. Do: ref<HTMLInputElement>(null). Don't: ref(null) without type. Good Example: const input = ref<HTMLInputElement>(null). Bad Example: const input = ref(null). Severity: Medium. Docs: .