finds.dev

bcherny/programming-typescript-answers

Official answers for exercises from Orielly's Programming TypeScript

View on GitHub

★ 558TypeScriptupdated Aug 2021

// the take

Answer key for the exercises at the end of each chapter of Boris Cherny's book Programming TypeScript, with one exercises.ts file per chapter. It is for someone working through the book who wants to check their solutions, not a library and not a learning resource on its own.

Each chapter's answers sit in one exercises.ts file, so a solution can be read next to its exercise without navigating a folder per question. The stack is small and standard: tsconfig.json, tslint.json, a Prettier config and a yarn.lock, so type-checking the answers needs one install and nothing custom. The author wrote them, so they reflect what each exercise was meant to teach rather than a third party's guess at it.

The last push was August 2021. The book predates that, and the compiler has changed since, so answers that depend on specific type-checker behavior may no longer match what tsc does. No test files appear in the tree, so nothing verifies that the answers still compile; you would have to run tsc yourself. There is no src/ch09 directory and no README to explain why, which leaves a gap in the middle of the book with no note.

We read the README, the directory tree and a key source file in October 2026. Nobody pays to be listed. How we judge →

search the same ground:

// at a glance

Stars
558
Forks
155
Language
TypeScript
Last commit
10 Aug 2021

// nearby

If programming-typescript-answers isn't quite it.

All repos →