Skip to content

Typescript Stephen Grider ((full)) May 2026

You will type fetch(URL).then(res => res.json()) a dozen times. Each time, he stops you. "Does TypeScript know that res.json() returns a WeatherReport ? No. It thinks it's any . You just lost all your safety."

Stephen Grider does not promise you will become a TypeScript contributor to the compiler. He promises you will never again push a bug where undefined is not a function at 2 AM.

When you use if (isAddAction(action)) , TypeScript narrows the type inside the block. Grider calls this "teaching the compiler your business logic." typescript stephen grider

(This is deliberately weak.) interface AddAction type: 'add'; payload: number;

After his course, you will open a tsconfig.json and see not a wall of noise, but a safety checklist. You will write functions where the type signature tells a story: "Given this, I guarantee that." You will refactor a 500-line JavaScript file into a 200-line TypeScript file, removing entire categories of bugs. You will type fetch(URL)

He draws a "pie". The generic is the slice of pie you pass in.

He then builds a Sort class using an interface Sortable . He demonstrates how an interface allows a single sorting algorithm to work on LinkedList , NumbersCollection , and CharactersCollection simultaneously. This is where TypeScript clicks for Grider's students: types are not about restricting you; they are about composing you. Generics are the wall that breaks most developers. The syntax <T> looks like line noise. Grider’s solution is visual and tactile. He promises you will never again push a

class HoldAnything<T> data: T;

Compare products

{"one"=>"Select 2 or 3 items to compare", "other"=>"{{ count }} of 3 items selected"}

Select first item to compare

Select second item to compare

Select third item to compare

Compare