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");
Example: Solution:Typescript: "argument of type x is not assignable to parameter of type y" error
This error is raised when a function argument does not match the expected type.
function greet(name: string) {}
greet(123);
greet("123");