UNPKG

firelordjs

Version:

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

4 lines (3 loc) • 242 B
import { MetaType } from '../metaTypeCreator'; import { CollectionReference, DocumentReference } from '../refs'; export type AddDoc = <T extends MetaType>(reference: CollectionReference<T>, data: T['write']) => Promise<DocumentReference<T>>;