結果 : typescript infer return type from function