( hook: Function | Function[] | undefined, )
| 109 | * intends to explicitly control the end of the transition. |
| 110 | */ |
| 111 | const hasExplicitCallback = ( |
| 112 | hook: Function | Function[] | undefined, |
| 113 | ): boolean => { |
| 114 | return hook |
| 115 | ? isArray(hook) |
| 116 | ? hook.some(h => h.length > 1) |
| 117 | : hook.length > 1 |
| 118 | : false |
| 119 | } |
| 120 | |
| 121 | export function resolveTransitionProps( |
| 122 | rawProps: TransitionProps, |
no test coverage detected