I just want to find what this type <V> for EntityState<V> is.
我只是将上面的内容作为代码放入,以便 V 部分显示出来......(而且我不知道如何搜索包含在人字形中的东西或这些东西被称为)
我已经搜索了我能想到的一切。ngrx 文档在https://v7.ngrx.io/guide/entity/interfaces的文档中使用它,我发现本教程提到了它 - https://medium.com/ngrx/introducing-ngrx-entity-598176456e15
... but I just can't figure out what is type <V>.
这是它使用的接口:
interface EntityState<V> {
ids: string[] | number[];
entities: { [id: string | id: number]: V };
}
This probably sounds retarded but HOW do I figure out the answer
to this seemingly incredibly simple question? What is <V>?