David AlonsoD
Convex Community17mo ago
7 replies
David Alonso

How to define a type that is the return type of a Convex query

Suppose I want to declare a type at the top of a file like so:
type FirestoreCollectionResult = {
  db: Firestore;
  cFirestoreConfig: any;
};

How could i set cFirestoreConfig to the output of a convex query or part of it?
Was this page helpful?