Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

connectFirestoreEmulator

Modify this instance to communicate with the Cloud Firestore emulator.

Note: This must be called before this instance has been used to do any operations.

function connectFirestoreEmulator(
firestore: Firestore,
host: string,
port: number,
options?: {
mockUserToken?: EmulatorMockTokenOptions | string;
}
,
): void;
§
connectFirestoreEmulator(firestore: Firestore, host: string, port: number, options?: {
mockUserToken?: EmulatorMockTokenOptions | string;
}
): void
[src]

§Parameters

§
firestore: Firestore
[src]
  • The Firestore instance to configure to connect to the emulator.
§
host: string
[src]
  • the emulator host (ex: localhost).
§
port: number
[src]
  • the emulator port (ex: 9000).
§
options?: {
mockUserToken?: EmulatorMockTokenOptions | string;
}
optional
[src]

§Return Type