結果 : typescript different type based on parameter