Typescript: "argument of type x is not assignable to parameter of type y" error

Example:

function greet(name: string) {}
greet(123);
This error is raised when a function argument does not match the expected type.

Solution:

greet("123");

Beginner's Guide to TypeScript