title: type void is not assignable to type any
body: <p>I have a code in my component</p>
  
  <pre><code>export class AddNewCardComponent { 
  
      public concept = [];
      constructor( 
          private _router: Router,
          private _empDiscService: empDiscService) { 
  
          }
  
      ngOnInit(){
          this.concept = this._empDiscService.StoreMaster()
          .subscribe((data)=&gt;{
              this.concept =  data;
          });
      }
  }
  </code></pre>
  
  <p>its just i want to get var from services and put it in my store = [];</p>
  
  <p>but it says </p>
  
  <blockquote>
    <p>type void is not assignable to type any</p>
  </blockquote>
  
  <p>here is my code in services</p>
  
  <pre><code>import {Injectable} from '@angular/core';
  import { Httpprovider } from './httpprovider';
  
  @Injectable()
  export class empDiscService{
  
      public storedata = [];
      constructor(private _httpprovider: Httpprovider){
  
      }
  
      StoreMaster():Observable&lt;any[]&gt;{
          return this._httpprovider.httpReq('http://192.168.1.40:5000/getconcept','GET',null,null).map(res =&gt;{&lt;any[]&gt;res.json()}
      };
  }
  </code></pre>