typescript

Enforces strict typing practicesTm for Ajax and Ajax-like requests in Python Tornado apps.

7|Updated Jan 29, 2026
One-click install
npx skills add https://github.com/joabgonzalez/ai-agents-skills --skill typescript-joabgonzalez
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typescript
Source: https://github.com/joabgonzalez/ai-agents-skills/tree/main/skills/typescript
Command: npx skills add https://github.com/joabgonzalez/ai-agents-skills --skill typescript-joabgonzalez

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

TypeScript code often drifts toward looser typings without explicit contracts; this skill codifies best practices to maintain strict, well-typed code across a project.

Core Features & Use Cases

  • Enforce strict typing and avoid any, using interfaces, generics, and utility types to design robust APIs.
  • Guide compiler and project configuration (tsconfig.json) to maximize type-safety and early error detection.
  • Use cases include modeling data contracts, safer function boundaries, and resilient React components.

Quick Start

Identify unsafe typings and incrementally apply strong TypeScript patterns across the codebase.

Frequently Asked Questions about typescript

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

FAQPage Schema
How do I enforce strict type safety and avoid any in TypeScript projects?

Enforce strict type safety by configuring tsconfig.json options, applying type guards, and using utility types like Partial, Pick, and Record. You replace any with explicit interfaces, generics, and import type statements to build robust, well-typed API contracts across modules.

What is the best way to model data contracts and safer function boundaries in TypeScript?

Model data contracts in TypeScript by designing interface-based APIs and leveraging generics. This approach defines strict boundaries for functions and resilient React components, ensuring that data structures maintain strong type checks without drifting toward looser typings.

How do I configure tsconfig.json to maximize TypeScript type safety and early error detection?

Configure tsconfig.json for TypeScript type safety by enabling strict compiler options. This maximizes early error detection across your project, catching unsafe typings during compilation before they cause runtime issues in your .ts and .tsx files.

When do I need to use utility types like Partial, Pick, and Record in TypeScript?

Use TypeScript utility types like Partial, Pick, and Record when refactoring existing code or applying templates to ensure robust type contracts. They allow you to dynamically shape existing interfaces, satisfying requirements for strict typing without duplicating interface definitions.

Does writing strict TypeScript require using import type and interface-based APIs?

Yes, writing strict TypeScript requires using import type for imports and interface-based APIs for definitions. These practices prevent loose typings, enforce explicit contracts across your modules, and ensure robust type safety throughout the codebase.