vue-typescript

Guide Vue 3 development with TypeScript for typed props, emits, and Pinia stores.

3|1|Updated Feb 2, 2026
One-click install
npx skills add https://github.com/HouseGarofalo/claude-code-base --skill vue-typescript-housegarofalo
Or copy as Structured Prompt for Agentâ–¼
Please help me install this Agent Skill.
Skill: vue-typescript
Source: https://github.com/HouseGarofalo/claude-code-base/tree/main/.claude/skills/vue-typescript
Command: npx skills add https://github.com/HouseGarofalo/claude-code-base --skill vue-typescript-housegarofalo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides expert guidance and code examples for building modern Vue 3 applications using TypeScript, ensuring type safety and leveraging advanced features.

Core Features & Use Cases

  • Component Development: Demonstrates typed props, emits, and script setup with TypeScript.
  • State Management: Illustrates Pinia store patterns with TypeScript, including getters and actions.
  • Composable Functions: Shows how to create and use reusable, type-safe composables with useFetch example.
  • Vue Router: Provides examples of typed routes and navigation guards.
  • Type Definitions: Includes examples for defining interfaces and types for components, stores, and API responses.

Quick Start

Use the vue-typescript skill to generate a basic Vue 3 component with typed props and emits.

Frequently Asked Questions about vue-typescript

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I define typed props and emits in Vue 3 components?â–¼

Typed props and emits in Vue 3 are defined using TypeScript interfaces within script setup. This Skill provides expert guidance and code examples to ensure strict type safety for component inputs and outputs.

What is the best way to structure Pinia stores with TypeScript?â–¼

Structuring Pinia stores with TypeScript involves defining typed state, getters, and actions. This Skill illustrates specific store patterns to ensure robust type safety and efficient state management in Vue 3 applications.

How do I create type-safe composables using VueUse utilities?â–¼

Type-safe composables are created by defining explicit TypeScript interfaces for their inputs and outputs. This Skill demonstrates building reusable composables, including a useFetch example leveraging VueUse utilities.

Can I use TypeScript with Vue Router for typed routes and navigation guards?â–¼

Yes, Vue Router supports TypeScript integration for typed routes and navigation guards. This Skill provides expert examples showing how to implement robust type definitions for router configurations in Vue 3 projects.

How do I define TypeScript interfaces for API responses in Vue 3?â–¼

TypeScript interfaces for API responses are defined by creating explicit type structures matching your data models. This Skill includes examples for defining interfaces and types across components, stores, and API interactions.