Check if a value is a specific type at runtime
function isError(e: unknown): e is Error { return e instanceof Error; }
Properly type the return of an async function
Create a type with specific keys removed
Make every property of a type optional
Create a type with only selected keys