* Always return tuple to provide consistent interface
( pluginReturn: ReturnType<AutoAnimationPlugin>, )
| 511 | * Always return tuple to provide consistent interface |
| 512 | */ |
| 513 | function getPluginTuple( |
| 514 | pluginReturn: ReturnType<AutoAnimationPlugin>, |
| 515 | ): [KeyframeEffect, AutoAnimationPluginOptions] | [KeyframeEffect] { |
| 516 | if (Array.isArray(pluginReturn)) return pluginReturn |
| 517 | |
| 518 | return [pluginReturn] |
| 519 | } |
| 520 | |
| 521 | /** |
| 522 | * Determine if config is plugin |