diff --git a/types/prop-types/index.d.ts b/types/prop-types/index.d.ts index 33ff7ae783..f6176dd59d 100644 --- a/types/prop-types/index.d.ts +++ b/types/prop-types/index.d.ts @@ -47,6 +47,7 @@ export function oneOfType>(types: T[]): Requireable(type: Validator): Requireable; export function objectOf(type: Validator): Requireable<{ [K in keyof any]: T; }>; export function shape

>(type: P): Requireable>; +export function exact

>(type: P): Requireable>>; /** * Assert that the values match with the type specs. diff --git a/types/react/index.d.ts b/types/react/index.d.ts index 2c7110237c..09c9540a9d 100644 --- a/types/react/index.d.ts +++ b/types/react/index.d.ts @@ -2228,6 +2228,7 @@ declare namespace React { arrayOf: typeof PropTypes.arrayOf; objectOf: typeof PropTypes.objectOf; shape: typeof PropTypes.shape; + exact: typeof PropTypes.exact; } //