Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

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
 
PREVIOUS NEXT
Tagged: #full #call #signature #ts
ADD COMMENT
Topic
Name
2+5 =