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;