typescript

Enforce strict TypeScript typing across frontend and backend codebases.

Updated Oct 28, 2025
One-click install
npx skills add https://github.com/kaxuna1/ecomsite --skill typescript-kaxuna1
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typescript
Source: https://github.com/kaxuna1/ecomsite/tree/main/.claude/skills/typescript
Command: npx skills add https://github.com/kaxuna1/ecomsite --skill typescript-kaxuna1

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Enforces strict TypeScript typing across frontend and backend codebases to prevent runtime type errors and improve maintainability.

Core Features & Use Cases

  • Explicit type definitions and interfaces for API contracts
  • Discriminated unions and advanced types for robust data modeling
  • Guidance on mapping database rows to TypeScript types and enforcing return types
  • Use Case: When adding a new service, create DTOs and interfaces that align across backend and frontend

Quick Start

Enable strict TypeScript configurations and apply the provided patterns to new services, DTOs, and interfaces. Refer to the references for entity mapping, request augmentation, and API contract examples.

Frequently Asked Questions about typescript

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

FAQPage Schema
How do I enforce strict TypeScript typing across frontend and backend codebases?

You can align API contracts across the stack by creating DTOs and interfaces that map directly to database rows, using discriminated unions for robust data modeling and enforcing explicit return types on both Express/PostgreSQL and Vite/React boundaries.

What is the best way to map database rows to TypeScript types in an Express backend?

Yes, you can use this approach for Vite and React by applying the provided strict typing patterns to frontend interfaces and DTOs, ensuring API boundary integrity and preventing runtime type errors across your full-stack application.

Do I need specific configurations to enable strict type safety for new services?

Advanced TypeScript features like discriminated unions and type guards are used here for robust data modeling, standardizing patterns for request augmentation and ensuring API boundary integrity across your full-stack application.

Can I use these TypeScript patterns with Vite and React?

Yes, you can use these TypeScript patterns with Vite and React by applying the provided references for API contract examples and module conventions to ensure frontend type safety and API boundary integrity.