(type: string, props: Props)
| 24 | |
| 25 | // export const createInstance = (type: string, props: any): Instance => { |
| 26 | export const createInstance = (type: string, props: Props): Instance => { |
| 27 | const instance = { |
| 28 | id: instanceCounter++, |
| 29 | type, |
| 30 | children: [], |
| 31 | parent: -1, |
| 32 | props |
| 33 | }; |
| 34 | return instance; |
| 35 | }; |
| 36 | |
| 37 | export const appendInitialChild = ( |
| 38 | parent: Instance | Container, |
nothing calls this directly
no outgoing calls
no test coverage detected