title: ConsumerGroup consumerOptions Configuration error @types/kafka-node
body: <p>I'm trying to use consumerGroup instead of HighLevelConsumer in a typescript project, but I'm not able to configure consumerOptions for consumerGroup.</p>
  
  <p>I am getting the following error when I assign</p>
  
  <p>1) fromOffset: 'earliest'</p>
  
  <blockquote>
    <p>Argument of type '{ autoCommit: boolean; fetchMaxBytes: number;
    fetchMaxWaitMs: number; fromOffset: string; groupId...' is not
    assignable to parameter of type 'ConsumerGroupOptions'. Types of
    property 'fromOffset' are incompatible. Type 'string' is not
    assignable to type '"earliest" | "latest" | "none"'.</p>
  </blockquote>
  
  <p>2) protocol: ['roundrobin']</p>
  
  <blockquote>
    <p>Argument of type '{ autoCommit: boolean; fetchMaxBytes: number;
    fetchMaxWaitMs: number; protocol: string[]; groupId...' is not
    assignable to parameter of type 'ConsumerGroupOptions'. Types of
    property 'protocol' are incompatible. Type 'string[]' is not
    assignable to type '("roundrobin" | "range" |
    CustomPartitionAssignmentProtocol)[]'. Type 'string' is not assignable
    to type '"roundrobin" | "range" | CustomPartitionAssignmentProtocol'.</p>
  </blockquote>
  
  <p>3) outOfRangeOffset: 'earliest'</p>
  
  <blockquote>
    <p>Argument of type '{ autoCommit: boolean; fetchMaxBytes: number;
    fetchMaxWaitMs: number; outOfRangeOffset: string; g...' is not
    assignable to parameter of type 'ConsumerGroupOptions'. Types of
    property 'outOfRangeOffset' are incompatible. Type 'string' is not
    assignable to type '"earliest" | "latest" | "none"'.</p>
  </blockquote>
  
  <p>Environment details:</p>
  
  <ul>
  <li>Node version: v8.11.1</li>
  <li>Kafka-node version: v2.6.1</li>
  <li>types/kafka-node: v2.0.6</li>
  </ul>
  
  <p>Can anyone help me understand where I am going wrong? Thanks in advance.</p>