From 4567bd68316b575a34222f2068038dd76133120f Mon Sep 17 00:00:00 2001 From: Braden MacDonald Date: Tue, 3 Dec 2024 12:54:59 -0800 Subject: [PATCH] fix: small type error in propTypes utils requiredWhen() --- src/utils/propTypes/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/propTypes/utils.js b/src/utils/propTypes/utils.js index f6a9f262ad..bcd7a5a294 100644 --- a/src/utils/propTypes/utils.js +++ b/src/utils/propTypes/utils.js @@ -36,7 +36,7 @@ export const isEveryPropDefined = (props, otherPropNames) => otherPropNames * Returns a PropType entry with the given propType that is required if otherPropName * is truthy. * @param {func} propType - target PropType - * @param {string} otherPropName - string name for prop that, if true, marks the + * @param {string | string[]} otherPropName - string name for prop that, if true, marks the * associated prop as required * @return {func} - PropType based on propType that is required if otherPropName is * set to true.