Union of generics

I've tried to write the following :

export const arkQueryCriteriaValue = type('<Value>', [
  { eq: 'Value' },
  '|',
  { notEq: 'Value' },
  '|',
  { in: 'Value[]' },
]);


But unfortunately it doesn't work because the 2nd parameter accepts a maximum of 3 elements. Is there a way to add arbitrary number of element to a union issued from a generic ?
Was this page helpful?