After reading the newest Firebase blog post Why you should use TypeScript for writing Cloud Functions, I decided to try tslint
and it's amazing, though I have a problem with my types.
I have an import statement as this
import { DocumentSnapshot, DocumentReference, QuerySnapshot, WriteResult, Transaction, WriteBatch } from '@google-cloud/firestore';
But even though my code is working fine tslint tells me the following.
[tslint] Module '@google-cloud/firestore' is not listed as dependency in package.json (no-implicit-dependencies)
What is the best practice with Firebase + TypeScript for using/importing types?