UNPKG

708 BTypeScriptView Raw
1import { App } from "firebase-admin/app";
2export declare function getApp(): App;
3/**
4 * This function allows the Firebase Emulator Suite to override the FirebaseApp instance
5 * used by the Firebase Functions SDK. Developers should never call this function for
6 * other purposes.
7 * N.B. For clarity for use in testing this name has no mention of emulation, but
8 * it must be exported from index as app.setEmulatedAdminApp or we break the emulator.
9 * We can remove this export when:
10 * A) We complete the new emulator and no longer depend on monkeypatching
11 * B) We tweak the CLI to look for different APIs to monkeypatch depending on versions.
12 * @alpha
13 */
14export declare function setApp(app?: App): void;