Skip to content

Commit

Permalink
fix: small type error in propTypes utils requiredWhen()
Browse files Browse the repository at this point in the history
  • Loading branch information
bradenmacdonald committed Dec 3, 2024
1 parent 8742024 commit 4567bd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/propTypes/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 4567bd6

Please sign in to comment.