title: Typescript filter array of objects
body: <p>I have an array of objects like so:</p>
  
  <pre><code>questionConfig = [{
    section: 'base',
    key: 'firstName',
    label: 'First name',
    type: 'text',
    fieldType: 'input'
    required: true,  
   },
   {
    section: 'dynamic'
    key: 'emailAddress',
    label: 'Email',
    type: 'email',    
    fieldType: 'input',
    required: true,     
  },
  {     
    key: 'primaryPhone',
    label: ' primary phone',
    type: 'phone',     
    fieldType: 'input'
  },
  {    
  key: 'something',
  label: 'dgfdsfgds',
  options: [
    {key: 1, value: 'dsfgdsg'},
    {key: 2, value: 'dfgdsfg'},
    {key: 3, value: 'dsfgdsgds'},
    {key: 4, value: 'dsfgdgsf'}
  ],    
  fieldType: 'dropdown'
  }]
  </code></pre>
  
  <p>How can I filter this array to get the objects where section = 'base'?</p>
  
  <p>If tried </p>
  
  <pre><code>let questionBaseSection = this.questionConfig.filter(question =&gt; question.section === 'base' )
  </code></pre>
  
  <p>And get the error: 
  Property 'section' does not exist on type '{ section: string; key: string; label: string; required: boolean; minLength: number; minLengthErr...'.
    Property 'section' does not exist on type '{ key: string; label: string; type: string; fieldType: string; required: boolean; minLength: numb...'.</p>