Agent Wealth HubFree public resources
中文 EN العربية

Back to catalog / Developer tools

Advanced TypeScript types and reusable utilities

Model safe APIs and components with generics, conditional, mapped, and template literal types.

Skills

Enable strict mode and let the compiler infer simple cases. For library APIs, forms, or configuration, use generics, conditional/mapped/template-literal types deliberately. Prefer `unknown` plus guards over `any` or assertions, model mutually exclusive states with discriminated unions, and add type tests for edge cases. Bound recursive types and compile time; document public utilities so clever types do not obscure errors.

Permissions

Prerequisites

Permissions

Limitations

Complex types can slow compilation and type tests do not validate runtime data.

Pinned upstream source

https://github.com/wshobson/agents/blob/46891e7e60da0e52baf1050b7b6391b64e84c6d9/plugins/javascript-typescript/skills/typescript-advanced-types/SKILL.md

Repository
wshobson/agents
File path
plugins/javascript-typescript/skills/typescript-advanced-types/SKILL.md
Pinned commit
46891e7e60da0e52baf1050b7b6391b64e84c6d9
Source checked
2026-10-14 · Reviewed against the pinned upstream source

Repository metrics

These values describe the upstream repository, not popularity or likes for an individual skill or playbook.

Stars
Not collected
Forks
Not collected
Observed at
Not collected

No metrics snapshot is available yet.

License: MIT

Compatible tools

TypeScript compiler · tsc · type-testing framework

View skill directory

Main topic

Take a coding Agent change from context to verification

Related resources