typescript type function property of object anonymous code example
Example: typescript annotate return type
function add(x: number, y: number): number {
return x + y;
}
function add(x: number, y: number): number {
return x + y;
}