Core classes, types and utilities for firestore-storage, a TypeScript-first library that provides typesafe repositories around Firestore. Version 7.0.5 is current and stable, with regular releases. Key differentiators: compile-time safety for document paths and queries via generics, automatic base model fields (id, _rawPath), and nested collection support with type-safe parent ID maps. Unlike raw Firestore SDK, it enforces collection and document structures through repository patterns.
npm install firestore-storage-coreNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to define a CollectionPath for a top-level collection, generate doc/collection paths, and parse paths back to IDs.
Use import syntax instead of require(). Ensure package.json has "type": "module" or use .mjs extension.
Do not rely on id or _rawPath in custom logic; treat them as transient read-only metadata.
Use separate interfaces (e.g., CreateReview vs Review) to exclude id from input types.
Create repository instances directly without decorator: class MyRepo extends BaseRepository<...>
Use import syntax. If you must use require, ensure your project has type: module or use dynamic import: const m = await import('pkg')Install both core and main packages: npm install firestore-storage-core firestore-storage
Use import type { DocumentIds } from 'firestore-storage-core' or 'isolatedModules' enabled