skills/hyf0/vue-skills/vue-options-api-best-practices

vue-options-api-best-practices

Originally fromvuejs-ai/skills
Installation
Summary

Vue 3 Options API patterns, TypeScript integration strategies, and context-binding gotchas.

  • Covers TypeScript type safety for component properties, this context, prop validators, event handlers, complex types, provide/inject, and computed return types
  • Addresses common method and lifecycle hook pitfalls including arrow function binding issues and stateful method side effects
  • Includes references to specific solutions for each pattern, from defineComponent setup to proper event handler typing
SKILL.md

Vue.js Options API best practices, TypeScript integration, and common gotchas.

TypeScript

Methods & Lifecycle

Weekly Installs
1.4K
Repository
hyf0/vue-skills
GitHub Stars
2.3K
First Seen
Today