diff --git a/types/prop-types/index.d.ts b/types/prop-types/index.d.ts index 3501b253d2..691e32ff41 100644 --- a/types/prop-types/index.d.ts +++ b/types/prop-types/index.d.ts @@ -38,7 +38,7 @@ export type OptionalKeys = Exclude>; export type InferPropsInner = { [K in keyof V]-?: InferType; }; export interface Validator { - (props: object, propName: string, componentName: string, location: string, propFullName: string): Error | null; + (props: { [key: string]: any }, propName: string, componentName: string, location: string, propFullName: string): Error | null; [nominalTypeHack]?: { type: T; };