Complete the code to define a type alias named Greet for a function that takes a string and returns a string.
type Greet = (name: string) => [1];Complete the code to declare a variable sayHello with the type alias Greet.
let sayHello: [1];Fix the error in the function implementation to match the Greet type alias.
sayHello = function(name: string): [1] { return "Hello, " + name; };
Fill both blanks to define a type alias MathOp for a function taking two numbers and returning a number.
type MathOp = (a: [1], b: [2]) => number;
Fill all three blanks to create a variable multiply of type MathOp that multiplies two numbers.
const multiply: [1] = (x: [2], y: [3]) => x * y;
