typescript interface for arrow function arguments code example
Example: function with return type in angular
greet() : number {
return "Hello, " + this.greeting;
}
greet() : number {
return "Hello, " + this.greeting;
}