(obj: any)
| 10 | let totalCreated = 1 |
| 11 | |
| 12 | function isComponent(obj: any): obj is ComponentType<any> { |
| 13 | return ( |
| 14 | typeof obj === 'function' || |
| 15 | (typeof obj === 'object' && |
| 16 | !Array.isArray(obj) && |
| 17 | !('$el' in obj) && |
| 18 | !('$cmp' in obj) && |
| 19 | !('if' in obj)) |
| 20 | ) |
| 21 | } |
| 22 | |
| 23 | export function createInput<V = unknown>( |
| 24 | schemaOrComponent: FormKitSchemaNode | FormKitSection | ComponentType<any>, |