UNPKG

firewalk

Version:

A collection traversal library for Firestore

6 lines (5 loc) 425 B
import type { firestore } from 'firebase-admin'; /** * A function that takes a document snapshot and derives the data with which to partially set that document. */ export type SetPartialDataGetter<AppModelType = firestore.DocumentData, DbModelType extends firestore.DocumentData = firestore.DocumentData> = (doc: firestore.QueryDocumentSnapshot<AppModelType, DbModelType>) => firestore.PartialWithFieldValue<AppModelType>;