insertAfter()
pixi-reels / index / insertAfter
Function: insertAfter()
function insertAfter<TCtx extends StepContext<any, any>>(
steps: readonly PhaseStep<TCtx>[],
name: string,
...added: PhaseStep<TCtx>[]
): PhaseStep<TCtx>[];
Defined in: spin/phases/steps.ts:108
A copy of steps with added placed after the step called name. Throws on an unknown name.
Type Parameters#
| Type Parameter |
|---|
TCtx extends StepContext<any, any> |
Parameters#
| Parameter | Type |
|---|---|
steps | readonly PhaseStep<TCtx>[] |
name | string |
…added | PhaseStep<TCtx>[] |
Returns#
PhaseStep<TCtx>[]