我正在阅读ngrx文档并偶然发现了这样的代码。什么[p in keyof T]和T[p]意味着什么呢?
export type ActionReducerMap<T, V extends Action = Action> = {
[p in keyof T]: ActionReducer<T[p], V>
};
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3143 次 |
| 最近记录: |