Typescript error : Type '({ id: number; title: string; } | undefined)[]' is not assignable to type 'Todo[]'

后端 未结 0 470
时光说笑
时光说笑 2021-01-14 18:12

Below is the Todo Model:

export interface Todo {

  id: number;

  title: string;

}

Now, I want to use this in another typescript file:

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