function adding string || string[] typescript

前端 未结 0 438
眼角桃花
眼角桃花 2021-02-08 14:18

How can I use || (or) operator in string and string[]

interface Vehicles {
  vehicleName: string;
  buildDate: number;
  horsepower: number;
  isHyperCar: boolean         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题