skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
marius-townhouse/effective-typescript-skills49 installs

ts-check-jsdoc-experiment

Use when experimenting with TypeScript. Use when migrating JavaScript gradually. Use when adding types to JS files. Use when teams are learning TypeScript. Use when validating JavaScript with types.

How do I install this agent skill?

npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill ts-check-jsdoc-experiment
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    This skill is a purely educational guide on using TypeScript features in JavaScript files. It contains no executable code, network requests, or dangerous commands.

  • Socketpass

    No alerts

  • Snykpass

    Risk: LOW · No issues

  • Runlayerpass

    1 file scanned · No issues

  • ZeroLeakspass

    Score: 93/100 · 2 sections analyzed

What does this agent skill do?

Use @ts-check and JSDoc to Experiment with TypeScript

Overview

You can add TypeScript type checking to JavaScript files without converting them to TypeScript. Use @ts-check at the top of a JS file and JSDoc annotations to add types. This lets you experiment with TypeScript gradually without committing to the full conversion.

When to Use This Skill

  • Experimenting with TypeScript
  • Gradually migrating JavaScript
  • Adding types to JS files
  • Teams learning TypeScript
  • Validating JavaScript with types

The Iron Rule

Use @ts-check and JSDoc to add TypeScript checking to JavaScript files without full conversion.

Example

// @ts-check

/**
 * @param {string} name
 * @param {number} age
 * @returns {string}
 */
function greet(name, age) {
  return `Hello ${name}, you are ${age}`;
}

greet('Alice', 30); // OK
greet('Alice', '30'); // Type error!

/** @type {string[]} */
const names = ['Alice', 'Bob'];

/** @typedef {{ x: number, y: number }} Point */
/** @type {Point} */
const point = { x: 1, y: 2 };

Reference

  • Effective TypeScript, 2nd Edition by Dan Vanderkam
  • Item 80: Use @ts-check and JSDoc to Experiment with TypeScript

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/marius-townhouse/effective-typescript-skills/ts-check-jsdoc-experiment">View ts-check-jsdoc-experiment on skillZs</a>