title: Splitting Actions-on-Google intents between typescript files on Node.js
body: <p>In my <code>src/index.ts</code> file on firebase functions for my dialogflow + google actions I have code which looks like the below:</p>
  
  <pre><code>import * as functions from 'firebase-functions';
  import { dialogflow, Suggestions } from 'actions-on-google';
  
  const app = dialogflow({debug: true})
  app.intent('Default Welcome Intent', conv =&gt; {
  conv.ask('Question')
  });
  
  exports.dialogflowFulfillment = functions.https.onRequest(app);
  </code></pre>
  
  <p>I would like to split each intent into its own TS file (as I intend to have quite a few), but am lost as to how to export each intent from seperate <code>.ts</code> files to interact with <code>app</code></p>
  
  <p>Any ideas would be appreciated</p>