結果 : typescript return type based on parameter value