Je lis ngrx docs et trébuché sur un tel code. Que signifient [p in keyof T]
et T[p]
?Comment interpréter [p dans keyof T] et T [p] dans ces déclarations TypeScript?
export type ActionReducerMap<T, V extends Action = Action> = {
[p in keyof T]: ActionReducer<T[p], V>
};
https://www.typescriptlang.org/docs/handbook/advanced-types.html#index-types – jonrsharpe