Convert a string to number without NaN issues
const num = Number(str) || 0;
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