I recently found this code snippet in the Firebase documentation:
import * as functions from 'firebase-functions';
import * as admin from 'firebase-admin';
import 'firebase-functions';
admin.initializeApp();
I'm curious about the second import of firebase-functions
. Why is it included?
Should this import statement be placed inside each module or just in the main index.ts file?