title: Typescript redux-saga - compile error when Call api with call effect
body: <p>I'm trying to call a mock API and i got this error:
  error TS2345: Argument of type 'Promise' is not assignable to parameter of type 'CallEffectNamedFn&lt;{ [x: string]: Func0; }, string>'.
  Type 'Promise' is not assignable to type '{ context: { [x: string]: Func0; }; fn: string; }'.
  Property 'context' is missing in type 'Promise'.</p>
  
  <p>The version of redux-saga is: "^0.16.0"
  tsConfig: 
      "target": "es6",
      "lib": ["es6", "dom"],</p>
  
  <p>Here the mock API:</p>
  
  <pre><code>    getAllMembersAsync() : Promise&lt;Program[]&gt; {
      const promise : Promise&lt;Array&lt;Program&gt;&gt; = new Promise((resolve, reject) 
  =&gt; {
              var members : Array&lt;Program&gt;;
  
              members = ProgramsData.map((currentProgram) =&gt; {
                  var program : Program = new Program();
  
                  program.code = currentProgram.code;
                  program.nom = currentProgram.nom;
                  program.cours = currentProgram.cours;
  
                  return program;
              });
  
              resolve(members);
          // });
      });
      return promise;
  }
  </code></pre>
  
  <p>And here my saga:</p>
  
  <pre><code>import {call, put, takeLatest} from 'redux-saga/effects';
  import { receivedPrograms, FetchPrograms, FETCH_PROGRAMS } from 
  '../actions/programActions';
  import { Program } from '../model/program';
  import programAPI from '../api/programAPI';
  
  function* fetchPrograms(action: FetchPrograms) {
   let programs: Array&lt;Program&gt;;
   programs = yield call(programAPI.getAllMembersAsync());
   yield put(receivedPrograms(programs));
  }
  </code></pre>
  
  <p>Can someone tell my what i'm not doing correctly ?</p>
  
  <p>thanks alot guys !</p>