Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
20 lines
768 B
Plaintext
20 lines
768 B
Plaintext
/**
|
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
// React 15.5 references this module, and assumes PropTypes are still callable in production.
|
|
// Therefore we re-export development-only version with all the PropTypes checks here.
|
|
// However if one is migrating to the `prop-types` npm library, they will go through the
|
|
// `index.js` entry point, and it will branch depending on the environment.
|
|
var factory = require('./factoryWithTypeCheckers');
|
|
module.exports = function(isValidElement) {
|
|
// It is still allowed in 15.5.
|
|
var throwOnDirectAccess = false;
|
|
return factory(isValidElement, throwOnDirectAccess);
|
|
};
|