(props: any)
| 41 | } |
| 42 | // check if props is valid |
| 43 | const isValidProps = (props: any) => { |
| 44 | if (!props) { |
| 45 | return false |
| 46 | } |
| 47 | return typeof schema.props === 'object' && !Array.isArray(props) |
| 48 | } |
| 49 | return !!(schema.componentName && isValidProps(schema.props)) |
| 50 | } |
| 51 |