vue-options-api-best-practices
1.4K
总安装量
1.4K
周安装量
#297
全站排名
安装命令
npx skills add https://github.com/vuejs-ai/skills --skill vue-options-api-best-practices
Agent 安装分布
opencode
852
codex
808
claude-code
769
gemini-cli
729
github-copilot
648
cursor
551
Skill 文档
Vue.js Options API best practices, TypeScript integration, and common gotchas.
TypeScript
- Need to enable TypeScript type inference for component properties â See ts-options-api-use-definecomponent
- Enabling type safety for Options API this context â See ts-strict-mode-options-api
- Using old TypeScript versions with prop validators â See ts-options-api-arrow-functions-validators
- Event handler parameters need proper type safety â See ts-options-api-type-event-handlers
- Need to type object or array props with interfaces â See ts-options-api-proptype-complex-types
- Injected properties missing TypeScript types completely â See ts-options-api-provide-inject-limitations
- Complex computed properties lack clear type documentation â See ts-options-api-computed-return-types
Methods & Lifecycle
- Methods aren’t binding to component instance context â See no-arrow-functions-in-methods
- Lifecycle hooks losing access to component data â See no-arrow-functions-in-lifecycle-hooks
- Debounced functions sharing state across component instances â See stateful-methods-lifecycle