Why can TypeScript's compiler not analyze an array of types?

前端 未结 0 1243
遇见更好的自我
遇见更好的自我 2020-12-28 23:17

Setup: Given some typescript code like:

type ObjectList = {
  [index: string]: string;
};

function makeList(input: ObjectList | string | num         


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