Skip to content

Commit 6c129bf

Browse files
Fix
1 parent 1dfec9a commit 6c129bf

File tree

2 files changed

+21
-20
lines changed

2 files changed

+21
-20
lines changed

packages/firestore/rollup.config.lite.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ const nodePlugins = [
5151
dest: 'dist/lite/src'
5252
},
5353
{
54+
// Copy into generated source files to support API Extractor
5455
src: 'src/protos',
5556
dest: 'dist/lite/firestore/src'
5657
}

packages/firestore/src/api/database.ts

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,29 +17,29 @@
1717

1818
import { Value as ProtoValue } from '../protos/firestore_proto_api';
1919
import {
20-
DocumentChangeType,
21-
WhereFilterOp,
20+
CollectionReference as PublicCollectionReference,
2221
DocumentChange as PublicDocumentChange,
23-
OrderByDirection,
24-
PersistenceSettings as PublicPersistenceSettings,
25-
QueryDocumentSnapshot as PublicQueryDocumentSnapshot,
26-
GetOptions,
27-
SnapshotOptions as PublicSnapshotOptions,
22+
DocumentChangeType,
2823
DocumentData,
29-
QuerySnapshot as PublicQuerySnapshot,
30-
SnapshotMetadata as PublicSnapshotMetadata,
31-
SnapshotListenOptions,
32-
Settings as PublicSettings,
33-
FirebaseFirestore as PublicFirestore,
3424
DocumentReference as PublicDocumentReference,
35-
UpdateData,
36-
CollectionReference as PublicCollectionReference,
3725
DocumentSnapshot as PublicDocumentSnapshot,
38-
SetOptions,
26+
FirebaseFirestore as PublicFirestore,
27+
FirestoreDataConverter,
28+
GetOptions,
3929
LogLevel as PublicLogLevel,
30+
OrderByDirection,
31+
PersistenceSettings as PublicPersistenceSettings,
4032
Query as PublicQuery,
41-
FirestoreDataConverter,
33+
QueryDocumentSnapshot as PublicQueryDocumentSnapshot,
34+
QuerySnapshot as PublicQuerySnapshot,
35+
SetOptions,
36+
Settings as PublicSettings,
37+
SnapshotListenOptions,
38+
SnapshotMetadata as PublicSnapshotMetadata,
39+
SnapshotOptions as PublicSnapshotOptions,
4240
Transaction as PublicTransaction,
41+
UpdateData,
42+
WhereFilterOp,
4343
WriteBatch as PublicWriteBatch
4444
} from '@firebase/firestore-types';
4545

@@ -170,7 +170,7 @@ export interface FirestoreDatabase {
170170

171171
/**
172172
* A concrete type describing all the values that can be applied via a
173-
* user-supplied PublicSettings object. This is a separate type so that
173+
* user-supplied firestore.Settings object. This is a separate type so that
174174
* defaults can be supplied and the value can be checked for equality.
175175
*/
176176
class FirestoreSettings {
@@ -382,8 +382,8 @@ export class Firestore implements PublicFirestore, FirebaseService {
382382
}
383383

384384
settings(settingsLiteral: PublicSettings): void {
385-
validateExactNumberOfArgs('firestore.Settings', arguments, 1);
386-
validateArgType('firestore.Settings', 'object', 1, settingsLiteral);
385+
validateExactNumberOfArgs('Firestore.settings', arguments, 1);
386+
validateArgType('Firestore.settings', 'object', 1, settingsLiteral);
387387

388388
const newSettings = new FirestoreSettings(settingsLiteral);
389389
if (this._firestoreClient && !this._settings.isEqual(newSettings)) {
@@ -689,7 +689,7 @@ export class Firestore implements PublicFirestore, FirebaseService {
689689
}
690690
}
691691

692-
static setLogLevel(level: LogLevel): void {
692+
static setLogLevel(level: PublicLogLevel): void {
693693
validateExactNumberOfArgs('Firestore.setLogLevel', arguments, 1);
694694
validateStringEnum(
695695
'setLogLevel',

0 commit comments

Comments
 (0)