(props: any)
| 37 | } |
| 38 | // check if props is valid |
| 39 | const isValidProps = (props: any) => { |
| 40 | if (!props) { |
| 41 | return false; |
| 42 | } |
| 43 | if (isJSExpression(props)) { |
| 44 | return true; |
| 45 | } |
| 46 | return (typeof schema.props === 'object' && !Array.isArray(props)); |
| 47 | }; |
| 48 | return !!(schema.componentName && isValidProps(schema.props)); |
| 49 | } |
| 50 |
no test coverage detected
searching dependent graphs…