( component: ReactComponentExternalMetadata<T>["component"], props: T, ...children: Array<ReactComponentInternalMetadata | null | false | undefined> )
| 466 | : "empty-slot"); |
| 467 | |
| 468 | export const createElement = <T extends AnyProps>( |
| 469 | component: ReactComponentExternalMetadata<T>["component"], |
| 470 | props: T, |
| 471 | ...children: Array<ReactComponentInternalMetadata | null | false | undefined> |
| 472 | ): ReactComponentInternalMetadata => { |
| 473 | const internalMetadata = mapExternalMetadataToInternalMetadata({ |
| 474 | externalMetadata: { |
| 475 | children: children, |
| 476 | component, |
| 477 | props, |
| 478 | }, |
| 479 | }); |
| 480 | |
| 481 | return internalMetadata; |
| 482 | }; |
| 483 | |
| 484 | const findParentViewNode = (id: string): ReactViewTreeNode => { |
| 485 | const aux = (viewNode: ReactViewTreeNode): ReactViewTreeNode | undefined => { |
no test coverage detected