(value: any)
| 143 | * Simplified check - rely on try/catch for actual validation. |
| 144 | */ |
| 145 | export function isComponentType(value: any): boolean { |
| 146 | // Arrow functions and regular functions without a prototype are not components |
| 147 | return typeof value === "function" && !!value.prototype; |
| 148 | } |
| 149 | |
| 150 | /** |
| 151 | * Checks if a value is a valid slot value. |
no outgoing calls
no test coverage detected
searching dependent graphs…