[](https://circleci.com/gh/traveloka/prop-types) [](https://codecov.io/gh/traveloka/prop-types)
npm install @traveloka/prop-types 
> Custom prop-types used in Traveloka project for react prop validation that can't be covered using compile-time typecheck (such as Flow/Typescript)
ElementWithProps
Used to validate certain prop to equal react element with predefined props
Example:
``js
import { ElementWithProps } from '@traveloka/prop-types';
const B = () => null;
const A = () => null;
A.propTypes = {
b: ElementWithProps(B, { x: 'y', other: PropTypes.string })
}
MIT