-
4 votesanswersviews
如何在Typescript中编写严格要求其参数的Function类型
我遇到了一个问题 combineReducers 不够严格,我不知道如何绕过它: interface Action { type: any; } type Reducer<S> = (state: S, action: Action) => S; const reducer: Reducer<string> = (state: string, action: ...