vue-options-api-best-practices
493
总安装量
497
周安装量
#578
全站排名
安装命令
npx skills add https://github.com/hyf0/vue-skills --skill vue-options-api-best-practices
Agent 安装分布
cursor
281
claude-code
259
opencode
254
gemini-cli
242
trae
214
codex
206
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