src/language-js/print/assignment.js/getTypeParametersFromTypeReference
function getTypeParametersFromTypeReference(node) {
  if (
    isTypeReference(node) &&
    node.typeParameters &&
    node.typeParameters.params
  ) {
    return node.typeParameters.params;
  }
  return null;
}