title: Argument of type 'string' is not assignable to parameter of type 'string[]'
body: <p>I've been scouring the web for a solution to this, what probably is, a minor problem.</p>
  
  <p>My function on one ts. file:</p>
  
  <pre><code>public getHelpContent(question: string[]) {
  
    let theHelp: any[] = [];
    theHelp = this.mssqlService.getTheHelpAnswer(question);
    console.log("THE HELP:", theHelp);
    this.commentContent = theHelp ;
  
    let foundContent: any[] = [];
    for (let i = 0; i &lt; this.commentContent.length; i++) {
      let hitContent: string[];
      hitContent = this.searchHelpItem(question, this.commentContent[i]);
      if (hitContent) {
        foundContent.push(hitContent);
      }
    }
  
    return theHelp;
  
  }
  </code></pre>
  
  <p>The function on the mssql-service.ts file</p>
  
  <pre><code>getTheHelpAnswer(jsonObj: any): any {
    let body = JSON.stringify(jsonObj);
    console.log("BODY VAR: ", body);
    return this.http
      .post&lt;any&gt;(`${this.urlLocation}notification/TheHelp`, body)
      .map((response: Response) =&gt; response.json())
      .catch(this.handleError);
  }
  </code></pre>
  
  <p>and the HANDLE ERROR for prosperity...</p>
  
  <pre><code>private handleError(error: Response | any) {
  
    let errMsg: string;
    if (error instanceof Response) {
      const body = error || '';
      const err = JSON.stringify(body);
      errMsg = `${error.status} - ${error.statusText || ''} ${err}`;
    } else {
      errMsg = error.message ? error.message : error.toString();
    }
    console.error(errMsg);
    return Observable.throw(errMsg);
  </code></pre>
  
  <p>}</p>
  
  <p>the ERROR I GET on compile is this:</p>
  
  <pre><code>error TS2345: Argument of type 'string' is not assignable to parameter of type 'string[]'
  </code></pre>
  
  <p>When I change the :any here from: </p>
  
  <pre><code>getTheHelpAnswer(jsonObj: any): any { 
  </code></pre>
  
  <p>to </p>
  
  <pre><code>getTheHelpAnswer(jsonObj: any): Observable&lt;any&gt; { ...
  </code></pre>
  
  <p>this is the error I get:</p>
  
  <pre><code>ERROR in src/app/app-help-state-machine.ts(364,5): error TS2322: Type 'Observable&lt;any&gt;' is not assignable to type 'any[]'.
    Property 'includes' is missing in type 'Observable&lt;any&gt;'.
  src/app/app-help-state-machine.ts(371,50): error TS2345: 
  Argument of type 'string' is not assignable to parameter of type 'string[]'.
  </code></pre>
  
  <p>I don't understand what the problem is.</p>
  
  <p>UPDATE1:</p>
  
  <p>I forgot to add the signature of the FUNCTION</p>
  
  <pre><code>public getHelpContent(question: string[]): any[] { ...
  </code></pre>
  
  <p>But I still get this...</p>
  
  <pre><code>ERROR in src/app/app-help-state-machine.ts(364,5): error TS2322: Type 
  'Observable&lt;any&gt;' is not assignable to type 'any[]'.
        Property 'includes' is missing in type 'Observable&lt;any&gt;'.
  src/app/app-help-state-machine.ts(371,50): error TS2345: Argument of type 'string' is not assignable to parameter of type 'string[]'.
  </code></pre>
  
  <p>UPDATE 2:</p>
  
  <p>I figured it out...</p>
  
  <p>See solution where I answered my own question....</p>