TypeScript: How to convert object back and forth between types

前端 未结 0 1785
一向
一向 2020-12-09 02:14

Let say that I have two types

type A = {
  fi_name: string;
  l_name: string;
  f_name: string;
}

type B = {
  firstName: string;
  lastName: string;
  fullN         


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