const printOutput: (a:number|string) => void = output => console.log(output);
printOutput is the name of the function
(a:number|string) => void is the type. It says the function takes one parameter ‘a’ and the function returns void
output => console.log(output) is the body definition. We re-named a to output. then we console output