Skip to content

Commit 26f9bca

Browse files
committed
update checkPropTypes comments
1 parent 3f5bc18 commit 26f9bca

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

dash-renderer/src/checkPropTypes.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
/*
2-
* Copied out of prop-types and modified - similar to check-prop-types, but
3-
* simplified and tweaked to our needs, also so we don't need a special
4-
* transpiling inclusion for this in node_modules - check-prop-types hasn't
5-
* been modified in years and yet includes
2+
* Copied out of prop-types and modified - inspired by check-prop-types, but
3+
* simplified and tweaked to our needs: we don't need the NODE_ENV check,
4+
* we report all errors, not just the first one, and we don't need the throwing
5+
* variant `assertPropTypes`.
66
*/
77
import ReactPropTypesSecret from 'prop-types/lib/ReactPropTypesSecret';
88

99
/**
1010
* Assert that the values match with the type specs.
11-
* Error messages are memorized and will only be shown once.
1211
*
1312
* @param {object} typeSpecs Map of name to a ReactPropType
1413
* @param {object} values Runtime values that need to be type-checked

0 commit comments

Comments
 (0)