@flowio/api-prop-types
v10.16.113
Published
PropType validators that work with Flow API
Downloads
10,634
Readme
@flowio/api-prop-types
PropType validators that work with Flow API
import ApiPropTypes from '@flowio/api-prop-types';
import PropTypes from 'prop-types';
const propTypes = {
administrativeDivisions: PropTypes.arrayOf(ApiPropTypes.province).isRequired,
countries: PropTypes.arrayOf(ApiPropTypes.country).isRequired,
error: PropTypes.oneOfType([
ApiPropTypes.cardError,
ApiPropTypes.genericError,
]),
installmentPrograms: PropTypes.arrayOf(ApiPropTypes.installmentProgramSummary),
paymentMethodRules: PropTypes.arrayOf(ApiPropTypes.paymentMethodRule).isRequired,
paymentMethodTypes: PropTypes.arrayOf(ApiPropTypes.paymentMethodType).isRequired,
};Updating source files
Run apibuilder update from the package root to update the source files.
License
MIT
