MCPcopy
hub / github.com/formkit/auto-animate / getPluginTuple

Function getPluginTuple

src/index.ts:513–519  ·  view source on GitHub ↗

* Always return tuple to provide consistent interface

(
  pluginReturn: ReturnType<AutoAnimationPlugin>,
)

Source from the content-addressed store, hash-verified

511 * Always return tuple to provide consistent interface
512 */
513function 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

Callers 3

remainFunction · 0.85
addFunction · 0.85
removeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…