Skip to content

Commit

Permalink
feat: allow to pass collection reference in crud store constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
thdk committed Oct 12, 2021
1 parent 944220f commit 898e9a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stores/crud-store/crud-store.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import type { Firestore } from "firebase/firestore";
import type { CollectionReference, Firestore } from "firebase/firestore";

import { observable, action, transaction, computed, reaction, makeObservable } from "mobx";

import { Collection, ICollectionDependencies, ICollectionOptions } from "../../collection";
import { Doc } from "../../document";

export interface StoreOptions<T = any, K = T> {
collection: string,
collection: string | CollectionReference<K>,
collectionDependencies?: ICollectionDependencies,
collectionOptions?: ICollectionOptions<T, K>,
createNewDocumentDefaults?(overrideDefaultsWith?: Partial<T>): Partial<T> | Promise<Partial<T>>,
Expand Down

0 comments on commit 898e9a3

Please sign in to comment.