UNPKG

firesage

Version:

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

14 lines (13 loc) • 491 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.collectionCreator = void 0; var firestore_1 = require("firebase/firestore"); var collectionCreator = function (fStore, collectionPath) { return function (firestore) { return (0, firestore_1.collection)( // @ts-expect-error firestore || fStore, // ! testing messed up the type, weird collectionPath); }; }; exports.collectionCreator = collectionCreator;