ts lint call-signature code example
Example: full call signature in ts
// shorthand call signature
type Greet = (name: string) => void
//OR
//full call signature
type Greet = {
{name: string) => void }
}
let greet: Greet = (name) =>{
console.log('My name is ' , name)
};
greet('joyous jackal') // My name is joyous jackal