How to update only matching subset of object properties in TypeScript?

前端 未结 0 652
野趣味
野趣味 2021-02-01 05:55

Let\'s say I have two types that share some properties:

type A = {
  shared1: string;
  shared2: string;
  notShared1: string;
};

type B = { 
  shared1: string;
         


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