diff --git a/react/index.d.ts b/react/index.d.ts index cf3afd9661..0a26b01a0e 100644 --- a/react/index.d.ts +++ b/react/index.d.ts @@ -2627,9 +2627,7 @@ declare namespace React { isRequired: Validator; } - interface ValidationMap { - [key: string]: Validator; - } + type ValidationMap = { [K in keyof T]?: Validator }; interface ReactPropTypes { any: Requireable;