UNPKG

firelordjs

Version:

🔥 High Precision Typescript Wrapper for Firestore Web, Providing Unparalleled Type Safe and Dev Experience

10 lines (9 loc) • 444 B
import { MetaType } from '../metaTypeCreator'; import { DocumentReference } from '../refs'; import { Transaction } from '../transaction'; import { WriteBatch } from '../batch'; type DeleteCreator<U> = <T extends MetaType>(reference: DocumentReference<T>) => U; export type DeleteDoc = DeleteCreator<Promise<void>>; export type WriteBatchDelete = DeleteCreator<WriteBatch>; export type TransactionDelete = DeleteCreator<Transaction>; export {};