title: Typescript types for google cloud function's event and context
body: <p>I am trying out google cloud functions using typescript. I would like the function to be triggered by message from PubSub. The general format of the function is as follows</p>
  <pre><code>exports.readMessage = async (event, context): Promise&lt;void&gt; =&gt; {
    const message = event.data
      ? Buffer.from(event.data, &quot;base64&quot;).toString()
      : &quot;No Message&quot;;
    console.log(message);}
  </code></pre>
  <p>I have error as typescript complains about any type for event and context. package @google-cloud/PubSub mentions that it exports its types but I don't see any types related to event or context.</p>
  <p>Any pointers to what am I missing and from which package I can import the types?</p>