( builder: B, place: Forward )
| 743 | * @internal |
| 744 | */ |
| 745 | export const withForward = <B extends ElementBuilder<any, any, any, any>>( |
| 746 | builder: B, |
| 747 | place: Forward |
| 748 | ): B => { |
| 749 | const out = copyBuilder(builder) as Mutable<B> |
| 750 | const layer = builder[partForwardLayer] |
| 751 | const hook = layer === undefined ? place : forwardInPart(place, layer) |
| 752 | out.hooks = builder.hooks === undefined ? [hook] : [...builder.hooks, hook] |
| 753 | return out |
| 754 | } |
| 755 | |
| 756 | /** |
| 757 | * A copy of `builder` with `inputs` after the children it already holds, |
no test coverage detected