how to write a method return for ts function code example Example: typescript annotate return type function add(x: number, y: number): number { return x + y; }