Choosing specific types only from [index: string]

前端 未结 0 1351
天命终不由人
天命终不由人 2020-12-10 10:25

The interface for my initial state looks like so:

type List = (User | Post)[];

interface InitialState {
    [index: string]: List | boolean;
    users: User[         


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