5 Reference Files · TypeScript Developers
Stop Googling the Same
TypeScript Patterns
Cheatsheet, utility types, tsconfig template, and mistake guide — everything you reach for daily, in 5 printable files.
Print the cheatsheet. Keep it on your desk. Stop context-switching out of your editor.
No subscription · Markdown files · Print-ready
What's Inside
5 focused files — no filler, no fluff
TypeScript Cheatsheet
A4 · 2 pagesBasic types, interfaces, generics, functions, union/intersection, type narrowing, enums, classes, async — all the syntax you reach for daily.
TypeScript vs JavaScript Comparison
1 pageSide-by-side syntax, key differences, 5 real bugs TS would have caught, JS→TS migration checklist, and a decision guide.
20 Utility Types with Real Examples
2 pagesEvery built-in utility type (Partial, Pick, Omit, Record, ReturnType...) with real-world code patterns. Plus 4 custom utilities and template literal types.
tsconfig.json Best Practices Template
JSON fileProduction-ready config with every setting commented. Preset notes for Node.js, React/Vite, Next.js, and library authors.
15 Common TypeScript Mistakes & Fixes
3 pagesBefore/after code for the bugs that trip up every TS developer: any abuse, null checks, enum pitfalls, async types, non-null assertions, and more.
Sample: Utility Types in Action
interface User {
id: number; name: string; email: string;
role: "admin" | "user" | "guest";
}
// Partial — update payloads (only send what changed)
async function updateUser(id: number, data: Partial<User>) {
await db.users.update({ where: { id }, data });
}
updateUser(1, { name: "Alice" }); // ✅ only changed fields
// Pick — return only safe fields
type UserPreview = Pick<User, "id" | "name" | "role">;
// Omit — strip sensitive fields from API response
type PublicUser = Omit<User, "email">;
// Record — config maps with exhaustive keys
const rolePerms: Record<User["role"], string[]> = {
admin: ["read", "write", "delete"],
user: ["read", "write"],
guest: ["read"],
};
// ReturnType — reuse function return shape
function createUser(name: string) {
return { id: Date.now(), name, createdAt: new Date() };
}
type CreatedUser = ReturnType<typeof createUser>; Who This Is For
JS devs learning TypeScript
Get the syntax overview and mistake guide to avoid the most common pitfalls from day one.
TypeScript devs who want a reference
Keep the cheatsheet on your desk. Stop alt-tabbing to the docs for the same patterns.
Teams onboarding to TypeScript
Share the toolkit as a team resource. Everyone starts from the same foundation.
Anyone who Googles "tsconfig options"
The tsconfig template covers every setting with explanations — you won't need to guess again.
One-time purchase
5 TypeScript references. $14.
Cheatsheet, utility types, tsconfig, and mistake guide. Print them. Keep them close.
No subscription · Markdown + JSON · Instant download
FAQ
Is this for beginners or experienced developers?
Both. Beginners get the full syntax overview and mistake guide to avoid common pitfalls. Experienced devs get the utility types deep-dive and tsconfig best practices they always look up.
What format are the files?
Markdown files — open in VS Code, Obsidian, Notion, or any text editor. Convert to PDF with Pandoc or your browser print function (Ctrl+P → Save as PDF).
Does the tsconfig work with Next.js / Vite / Node.js?
Yes — the template includes preset notes for each environment with the specific settings to change (module, moduleResolution, jsx, lib). Copy the base and adjust for your stack.
Is JavaScript knowledge required?
Yes — TypeScript builds on JavaScript. Some JS familiarity is assumed (variables, functions, classes). If you know JS basics, this will level up your TS immediately.
Will this stay up to date?
The content covers stable TypeScript patterns that have been consistent for several major versions. Nothing in here is TypeScript 5.x-specific — it all applies to TS 4.x and newer.
Your TypeScript desk reference.
5 focused files covering the patterns you look up most. Print the cheatsheet. Keep the tsconfig template. Reference the utility types. Done.