(props, propName, componentName)
| 117 | (typeof window === 'object' && window.Element) || function () {}; |
| 118 | |
| 119 | export function DOMElement(props, propName, componentName) { |
| 120 | if (!(props[propName] instanceof Element)) { |
| 121 | return new Error( |
| 122 | 'Invalid prop `' + |
| 123 | propName + |
| 124 | '` supplied to `' + |
| 125 | componentName + |
| 126 | '`. Expected prop to be an instance of Element. Validation failed.', |
| 127 | ); |
| 128 | } |
| 129 | } |
| 130 | |
| 131 | export const targetPropType = PropTypes.oneOfType([ |
| 132 | PropTypes.string, |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…