功能
功能 | 描述 |
---|---|
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;