title: Node, firebase functions Property 'map' does not exist on type 'Promise<QuerySnapshot>
body: <p>Firstly that does not helps me: <a href="https://stackoverflow.com/questions/42693265/property-map-does-not-exist-on-type-observableresponse-when-using-angular">property map does not exist</a> and importing 'rxjs' does nork either</p>
  
  <p>just testing using typescript with my functions and using "async" and "await" keywords for some reason I'm getting error when trying to use map here is my code(btw if the way I retriving data from firestore using "await" is incorrect I would be very greatfull if someone correct me) -could not find alot of examples that uses typescript/functions/firestore):</p>
  
  <pre><code>import * as functions from 'firebase-functions';
  import * as admin from "firebase-admin";
  
  admin.initializeApp(functions.config().firebase);
  let db = admin.firestore();
  
  export const helloWorld = functions.https.onRequest(
    async (request, response) =&gt; {
      try {
        let t = await getEmployees()
        response.send("yes");
      } catch (e) {
        response.send('no')
      }
  });
  
  
  async function getEmployees(): Promise&lt;any&gt; {
    try {
      const f = await db.collection('companies').get().map(value =&gt; {
          let id = value.id
          return id;
      })
     } catch (e) {
      return e;
     }
  }
  </code></pre>
  
  <p>typescript Version 2.8.3</p>
  
  <p>package.json:</p>
  
  <pre><code>{
  "name": "functions",
  "scripts": {
  "lint": "tslint --project tsconfig.json",
  "build": "tsc",
  "serve": "npm run build &amp;&amp; firebase serve --only functions",
  "shell": "npm run build &amp;&amp; firebase functions:shell",
  "start": "npm run shell",
  "deploy": "firebase deploy --only functions",
  "logs": "firebase functions:log"
  },
  "main": "lib/index.js",
  "dependencies": {
  "firebase-admin": "^5.12.0",
  "firebase-functions": "^1.0.1"
  },
  "devDependencies": {
  "tslint": "^5.8.0",
  "typescript": "2.8.3"
    },
  "private": true
  }
  </code></pre>