typescript-docs
Skill2 starsChanged 16 days agoMITView on GitHub
Referencia completa de TypeScript en modo strict para desarrollo fullstack con NestJS y Next.js. Úsala cuando trabajes con: tipos avanzados (generics, conditional types, mapped types, template literal types), utility types (Partial, Required, Pick, Omit, ReturnType, Awaited), decoradores, declaration files, configuración de tsconfig.json, module augmentation, type guards, discriminated unions, o cuando necesites tipar correctamente DTOs, entidades de dominio, respuestas de API, estados de Zustand o queries de TanStack Query. También activa cuando el compilador dé errores de tipos que no sean evidentes.
In this repository31 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- private-template/CLAUDE.mdCLAUDE.md
- backend-quality-gateSkill
- blindarSkill
- brechasSkill
- crear-appSkill
- desarrollo-por-etapasSkill
- docker-docsSkill
- elegir-metodoSkill
- erp-saas-coreSkill
- fullstackSkill
- graphifySkill
- http-query-docsSkill
- mapa-bloqueSkill
- memory-bank-contextSkill
- mem-searchSkill
- microserviciosSkill
- minio-docsSkill
- nestjs-docsSkill
- nestjs-security-hardeningSkill
- nextjs-docsSkill
- prisma7-docsSkill
- prompt-masterSkill
- react-docsSkill
- redis-docsSkill
- skills-bundleSkill
- tailwind-docsSkill
- tanstack-query-docsSkill
- testing-actionsSkill
- ui-ux-polishSkill
- zustand-docsSkill
The file
Files
TypeScript — Referencia Completa (Strict Mode)
Documentación oficial (Context7)
Para la doc oficial y actualizada de TypeScript, consulta el MCP Context7 (resolve-library-id → query-docs) antes de generar código con APIs que no domines al 100%. Si contradice esta skill en una regla del estándar, gana la skill; si es un detalle de API, gana Context7.
Configuración obligatoria (tsconfig.json)
{
"compilerOptions": {
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"noUncheckedIndexedAccess": true,
"exactOptionalPropertyTypes": true
}
}Utility types más usados en el stack
// Partial — todos los campos opcionales (para DTOs de update)
type UpdateUserDto = Partial<User>;
// Pick — solo ciertos campos
type UserPublic = Pick<User, "id" | "name" | "email">;
// Omit — excluir campos
type UserWithoutPassword = Omit<User, "password">;
// ReturnType — extraer tipo de retorno
type QueryResult = ReturnType<typeof findUser>;
// Awaited — desenvolver Promise
type ResolvedUser = Awaited<ReturnType<typeof fetchUser>>;
// Record — objeto con claves tipadas
type RolePermissions = Record<Role, Permission[]>;Reglas no negociables
anyestá prohibido — usarunknown+ type guard, o definir el tipo correctoas Tiposolo cuando sea absolutamente necesario y con comentario de por qué!non-null assertion evitar — mejor narrowing o optional chaining- Discriminated unions para modelar estados:
{ status: 'success', data: T } | { status: 'error', error: string } satisfiespara validar tipos sin widening:const config = { ... } satisfies Config
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

