typescript-typing

Add TypeScript typing to JavaScript codebases using JSDoc and declaration files.

3|1|Updated Jan 15, 2026
One-click install
npx skills add https://github.com/Ilenburg1993/chatgpt-docker-puppeteer --skill typescript-typing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typescript-typing
Source: https://github.com/Ilenburg1993/chatgpt-docker-puppeteer/tree/main/.github/skills/typescript-typing
Command: npx skills add https://github.com/Ilenburg1993/chatgpt-docker-puppeteer --skill typescript-typing

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps improve code quality and maintainability in JavaScript-first projects by incrementally adding TypeScript-like typing, without a full migration.

Core Features & Use Cases

  • Strengthen JavaScript Types: Use JSDoc and declaration files (.d.ts) to define and enforce types.
  • Shared Type Definitions: Promote reusable types to shared definition files.
  • Use Case: You have a complex JavaScript function with many parameters. Use this Skill to add JSDoc type annotations to clearly define each parameter's expected type and shape, making the function easier to understand and use.

Quick Start

Use the typescript-typing skill to add JSDoc type annotations to the function calculateTotal in src/utils.js.

Frequently Asked Questions about typescript-typing

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

FAQPage Schema
How do I add TypeScript typing to a JavaScript file without migrating to TypeScript?

Incremental TypeScript typing uses JSDoc annotations and declaration files to add type safety to JavaScript-first codebases. This approach enforces types and improves code clarity without requiring a full migration to .ts files.

What is the best way to share type definitions across multiple JavaScript files?

Sharing type definitions in JavaScript projects is done by promoting reusable types to shared declaration files (.d.ts). This establishes shared type contracts and validates public APIs across the codebase while keeping the JS-first approach.

How do JSDoc type annotations improve code maintainability in JavaScript?

JSDoc type annotations improve JavaScript maintainability by clearly defining parameter shapes and return types. Adding TypeScript-like typing incrementally makes complex functions easier to understand and prevents type-related runtime errors.

Can I use declaration files to enforce public API types in a JS-first project?

Declaration files can enforce public API types in JS-first projects by providing external type contracts. This incremental typing approach validates public APIs and ensures type safety without rewriting your core JavaScript implementation.

When should I use incremental typing instead of a full TypeScript migration?

Incremental typing should be used when you need to improve code quality and maintainability but want to keep a JavaScript-first codebase. It satisfies gradual typing adoption requirements without the overhead of a full TypeScript migration.