Skip to content

Commit

Permalink
Merge pull request #72 from lucasmoeskops/annotation-creation-prop-ty…
Browse files Browse the repository at this point in the history
…pes-fix

Different prop types options for defaults
  • Loading branch information
cbeer authored Apr 13, 2022
2 parents 89cf5a2 + 8f58460 commit befe9f5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/AnnotationCreation.js
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,11 @@ AnnotationCreation.propTypes = {
config: PropTypes.shape({
annotation: PropTypes.shape({
adapter: PropTypes.func,
defaults: PropTypes.objectOf(PropTypes.string),
defaults: PropTypes.objectOf(
PropTypes.oneOfType(
[PropTypes.bool, PropTypes.func, PropTypes.number, PropTypes.string]
)
),
}),
}).isRequired,
id: PropTypes.string.isRequired,
Expand Down

0 comments on commit befe9f5

Please sign in to comment.