( i: ComponentInternalInstance | null, )
| 351 | * public $parent chains, skip functional ones and go to the parent instead. |
| 352 | */ |
| 353 | const getPublicInstance = ( |
| 354 | i: ComponentInternalInstance | null, |
| 355 | ): ComponentPublicInstance | ComponentInternalInstance['exposed'] | null => { |
| 356 | if (!i) return null |
| 357 | if (isStatefulComponent(i)) return getComponentPublicInstance(i) |
| 358 | return getPublicInstance(i.parent) |
| 359 | } |
| 360 | |
| 361 | export const publicPropertiesMap: PublicPropertiesMap = |
| 362 | // Move PURE marker to new line to workaround compiler discarding it |
no test coverage detected