File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 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 */
77import 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
You can’t perform that action at this time.
0 commit comments