TypeScript: Having difficulty typing a function that can filter on a specific level inside of an object while preserving its original structure

后端 未结 0 1464
旧巷少年郎
旧巷少年郎 2020-11-30 00:50

I have an object called myCached and its type is known as

interface MyCache {
  a: {
    b: {
      c: Target[];
      d: string;
    };
  };
}
<         


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