firestore namespace

功能

功能描述
beforeSnapshot建構子(事件)
資料庫(資料庫)
文檔(路徑)選擇要偵聽事件的 Firestore 文件。
命名空間(命名空間)
快照建構函式(事件)

課程

班級描述
資料庫產生器
文件產生器
命名空間產生器

類型別名

類型別名描述
文件快照
查詢文件快照

firestore.beforeSnapshotConstructor()

簽名:

export declare function beforeSnapshotConstructor(event: Event): DocumentSnapshot;

參數

範圍類型描述
事件事件

返回:

文件快照

firestore.資料庫()

簽名:

export declare function database(database: string): DatabaseBuilder;

參數

範圍類型描述
資料庫細繩

返回:

資料庫產生器

firestore.document()

選擇要偵聽事件的 Firestore 文件。

簽名:

export declare function document<Path extends string>(path: Path): DocumentBuilder<Path>;

參數

範圍類型描述
小路小路要監聽的完整資料庫路徑。這包括文件所屬的集合的名稱。例如,如果集合名為“users”,文件名為“Ada”,則路徑為“/users/Ada”。

返回:

文件產生器<路徑>

firestore.namespace()

簽名:

export declare function namespace(namespace: string): NamespaceBuilder;

參數

範圍類型描述
名稱空間細繩

返回:

命名空間產生器

firestore.snapshotConstructor()

簽名:

export declare function snapshotConstructor(event: Event): DocumentSnapshot;

參數

範圍類型描述
事件事件

返回:

文件快照

firestore.DocumentSnapshot

簽名:

export type DocumentSnapshot = firestore.DocumentSnapshot;

firestore.QueryDocumentSnapshot

簽名:

export type QueryDocumentSnapshot = firestore.QueryDocumentSnapshot;