Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Externs for Google Firebase's Firestore
firebase.firestore = function(app) {};
firebase.app.App.prototype.firestore = function(app) {};
firebase.firestore.Firestore = function() {};
firebase.firestore.Firestore = {};
firebase.firestore.Firestore.app;
firebase.firestore.Firestore.DocumentData;
firebase.firestore.Firestore.setLogLevel = function(logLevel) {};
firebase.firestore.Firestore.prototype.batch = function () {};
firebase.firestore.Firestore.prototype.collection = function (collectionPath) {};
firebase.firestore.Firestore.prototype.disableNetwork = function () {};
firebase.firestore.Firestore.prototype.doc = function (documentPath) {};
firebase.firestore.Firestore.prototype.enableNetwork = function () {};
firebase.firestore.Firestore.prototype.enablePersistence = function () {};
firebase.firestore.Firestore.prototype.runTransaction = function (updateFunction) {};
firebase.firestore.Firestore.prototype.settings = function (settings) {};
firebase.firestore.Blob = {};
firebase.firestore.Blob.fromBase64String = function(base64) {};
firebase.firestore.Blob.fromUint8Array = function(array) {};
firebase.firestore.Blob.prototype.isEqual = function(other) {};
firebase.firestore.Blob.prototype.toBase64 = function() {};
firebase.firestore.Blob.prototype.toUint8Array = function() {};
// firebase.firestore.Blob.prototype.toString = function() {};
firebase.firestore.CollectionReference = {};
firebase.firestore.CollectionReference.prototype.firestore;
firebase.firestore.CollectionReference.prototype.id;
firebase.firestore.CollectionReference.prototype.parent;
firebase.firestore.CollectionReference.prototype.add = function (data) {};
firebase.firestore.CollectionReference.prototype.doc = function (documentPath) {};
firebase.firestore.CollectionReference.prototype.endAt = function (snapshotOrVarArgs) {};
firebase.firestore.CollectionReference.prototype.endBefore = function (snapshotOrVarArgs) {};
firebase.firestore.CollectionReference.prototype.get = function (options) {};
firebase.firestore.CollectionReference.prototype.isEqual = function (other) {};
firebase.firestore.CollectionReference.prototype.limit = function (limit) {};
firebase.firestore.CollectionReference.prototype.onSnapshot = function (optionsOrObserverOrOnNext, observerOrOnNextOrOnError, onError, onCompletion) {};
firebase.firestore.CollectionReference.prototype.orderBy = function (fieldPath, directionStr) {};
firebase.firestore.CollectionReference.prototype.startAfter = function (snapshotOrVarArgs) {};
firebase.firestore.CollectionReference.prototype.startAt = function (snapshotOrVarArgs) {};
firebase.firestore.CollectionReference.prototype.where = function (fieldPath, opStr, value) {};
firebase.firestore.DocumentReference = {};
firebase.firestore.DocumentReference.prototype.firestore;
firebase.firestore.DocumentReference.prototype.id;
firebase.firestore.DocumentReference.prototype.parent;
firebase.firestore.DocumentReference.prototype.collection = function (collectionPath) {};
firebase.firestore.DocumentReference.prototype.delete = function () {};
firebase.firestore.DocumentReference.prototype.get = function (options) {};
// firebase.firestore.DocumentReference.prototype.isEqual = function (other) {};
firebase.firestore.DocumentReference.prototype.onSnapshot = function (optionsOrObserverOrOnNext, observerOrOnNextOrOnError, onError) {};
firebase.firestore.DocumentReference.prototype.set = function (data, options) {};
firebase.firestore.DocumentReference.prototype.update = function (var_args) {};
firebase.firestore.DocumentSnapshot = {};
firebase.firestore.DocumentSnapshot.prototype.exists;
firebase.firestore.DocumentSnapshot.prototype.id;
firebase.firestore.DocumentSnapshot.prototype.metadata;
firebase.firestore.DocumentSnapshot.prototype.ref;
firebase.firestore.DocumentSnapshot.prototype.data = function (options) {};
firebase.firestore.DocumentSnapshot.prototype.get = function (fieldPath, options) {};
firebase.firestore.DocumentSnapshot.prototype.isEqual = function (other) {};
firebase.firestore.FieldPath = function(var_args) {};
firebase.firestore.FieldPath.documentId = function() {};
firebase.firestore.FieldPath.prototype.isEqual = function (other) {};
firebase.firestore.FieldValue = {};
firebase.firestore.FieldValue.delete = function() {};
firebase.firestore.FieldValue.serverTimestamp = function() {};
firebase.firestore.FieldValue.prototype.isEqual = function (other) {};
firebase.firestore.GeoPoint = function(latitude, longitude) {};
firebase.firestore.GeoPoint.prototype.latitude;
firebase.firestore.GeoPoint.prototype.longitude;
firebase.firestore.GeoPoint.prototype.isEqual = function (other) {};
firebase.firestore.Query = {};
firebase.firestore.Query.prototype.firestore;
firebase.firestore.Query.prototype.firestore.endAt = function (snapshotOrVarArgs) {};
firebase.firestore.Query.prototype.firestore.endBefore = function (snapshotOrVarArgs) {};
firebase.firestore.Query.prototype.firestore.get = function (options) {};
// firebase.firestore.Query.prototype.firestore.isEqual = function (other) {};
firebase.firestore.Query.prototype.firestore.limit = function (limit) {};
firebase.firestore.Query.prototype.firestore.onSnapshot = function (optionsOrObserverOrOnNext, observerOrOnNextOrOnError, onError, onCompletion) {};
firebase.firestore.Query.prototype.firestore.orderBy = function (fieldPath, directionStr) {};
firebase.firestore.Query.prototype.firestore.startAfter = function (snapshotOrVarArgs) {};
firebase.firestore.Query.prototype.firestore.startAt = function (snapshotOrVarArgs) {};
firebase.firestore.Query.prototype.firestore.where = function (fieldPath, opStr, value) {};
firebase.firestore.QueryDocumentSnapshot = {};
firebase.firestore.QueryDocumentSnapshot.prototype.exists;
firebase.firestore.QueryDocumentSnapshot.prototype.id;
firebase.firestore.QueryDocumentSnapshot.prototype.metadata;
firebase.firestore.QueryDocumentSnapshot.prototype.ref;
firebase.firestore.QueryDocumentSnapshot.prototype.data = function (options) {};
firebase.firestore.QueryDocumentSnapshot.prototype.get = function (fieldPath, options) {};
firebase.firestore.QueryDocumentSnapshot.prototype.isEqual = function (other) {};
firebase.firestore.QueryListenOptions = function() {};
firebase.firestore.QueryListenOptions.prototype.includeDocumentMetadataChanges;
firebase.firestore.QueryListenOptions.prototype.includeQueryMetadataChanges;
firebase.firestore.QuerySnapshot = {};
firebase.firestore.QuerySnapshot.prototype.docChanges;
firebase.firestore.QuerySnapshot.prototype.docs;
firebase.firestore.QuerySnapshot.prototype.empty;
firebase.firestore.QuerySnapshot.prototype.metadata;
firebase.firestore.QuerySnapshot.prototype.query;
firebase.firestore.QuerySnapshot.prototype.size;
firebase.firestore.QuerySnapshot.prototype.forEach = function (callback, thisArg) {};
firebase.firestore.QuerySnapshot.prototype.isEqual = function (other) {};
firebase.firestore.SetOptions = function() {};
firebase.firestore.SetOptions.prototype.merge;
firebase.firestore.Settings = function() {};
firebase.firestore.Settings.prototype.timestampsInSnapshots;
firebase.firestore.SnapshotMetadata = function() {};
firebase.firestore.SnapshotMetadata.prototype.fromCache;
firebase.firestore.SnapshotMetadata.prototype.hasPendingWrites;
firebase.firestore.SnapshotMetadata.prototype.isEqual = function (other) {};
firebase.firestore.SnapshotOptions = function() {};
firebase.firestore.SnapshotOptions.prototype.serverTimestamps;
firebase.firestore.Timestamp = function(seconds, nanoseconds) {};
firebase.firestore.Timestamp.fromDate = function(date) {};
firebase.firestore.Timestamp.fromMillis = function(milliseconds) {};
firebase.firestore.Timestamp.now = function() {};
// firebase.firestore.Timestamp.prototype.isEqual = function (other) {};
firebase.firestore.Timestamp.prototype.toDate = function () {};
firebase.firestore.Timestamp.prototype.toMillis = function () {};
// firebase.firestore.Timestamp.prototype.toString = function () {};
firebase.firestore.Transaction = {};
firebase.firestore.Transaction.prototype.delete = function (documentRef) {};
firebase.firestore.Transaction.prototype.get = function (documentRef) {};
firebase.firestore.Transaction.prototype.set = function (documentRef, data, options) {};
firebase.firestore.Transaction.prototype.update = function (documentReg, var_args) {};
firebase.firestore.WriteBatch = {};
firebase.firestore.WriteBatch.prototype.commit = function () {};
firebase.firestore.WriteBatch.prototype.delete = function (documentRef) {};
firebase.firestore.WriteBatch.prototype.set = function (documentRef, data, options) {};
firebase.firestore.WriteBatch.prototype.update = function (documentReg, var_args) {};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment