UNPKG

functional-google-cloud

Version:

Google Cloud Utilities functions in Functional Programming Style

26 lines (25 loc) 620 B
import { Firestore, CollectionReference } from '@google-cloud/firestore'; /** * ```haskell * getFirestore :: () -> Firestore * ``` */ export declare const getFirestore: () => Firestore; /** * ```haskell * clearCollection :: Collection -> Promise * ``` */ export declare const clearCollection: (collection: CollectionReference) => Promise<void>; /** * ```haskell * clearFirestore :: () -> Promise * ``` */ export declare const clearFirestore: () => Promise<void>; /** * ```haskell * clearFirebase :: () -> Promise * ``` */ export declare const clearEmulator: () => Promise<void>;