TypeScript--泛型泛型声明一个方法,同时返回string,number类型问题<pre<codefunctiongetData1(value:string):string{returnvalue;}functiongetData2(value:num