aninest root / ExtensionStack / addLayerToStack
addLayerToStack()
ts
function addLayerToStack<Animating, L>(stack, layer): L
A passthrough function that adds a layer to the stack and returns the layer.
Type Parameters
• Animating extends RecursiveAnimatable
<unknown
>
• L extends Layer
<Animating
>
Parameters
• stack: ExtensionStack
<Animating
>
• layer: L
Returns
L
the inputted layer