import * as THREE from 'three' ; param target export function quatInvertCompat < T extends THREE . Quaternion > ( target ) { if ( ( target as any ) . invert ) { target . invert ( ) ; } else { ( target as any ) . inverse ( ) ; } return target ; }