Sfoglia il codice sorgente

fix params matched type passed

修复类型参数传递的问题
liangyongrui 6 anni fa
parent
commit
dd66137133
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/models/connect.d.ts

+ 1 - 1
src/models/connect.d.ts

@@ -49,7 +49,7 @@ export interface Route extends MenuDataItem {
  * @type T: Params matched in dynamic routing
  */
 export interface ConnectProps<T extends { [key: string]: any } = {}>
-  extends Partial<RouterTypes<Route>> {
+  extends Partial<RouterTypes<Route, T>> {
   dispatch?: Dispatch;
 }