Skip to content

Commit 152053f

Browse files
docs: Update sample to use non-default export (#634)
1 parent 8497f8e commit 152053f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

handwritten/firestore/dev/src/watch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import {google} from '../protos/firestore_proto_api';
2222
import {ExponentialBackoff} from './backoff';
2323
import {DocumentSnapshotBuilder, QueryDocumentSnapshot} from './document';
2424
import {DocumentChange, DocumentChangeType} from './document-change';
25-
import Firestore, {DocumentReference, Query} from './index';
25+
import {DocumentReference, Firestore, Query} from './index';
2626
import {logger} from './logger';
2727
import {QualifiedResourcePath} from './path';
2828
import {Timestamp} from './timestamp';

handwritten/firestore/dev/test/document.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ describe('serialize document', () => {
274274
}).to.throw('Value for argument "latitude" is not a valid number');
275275

276276
expect(() => {
277-
new (Firestore as InvalidApiUsage).GeoPoint();
277+
new (GeoPoint as InvalidApiUsage)();
278278
}).to.throw('Value for argument "latitude" is not a valid number');
279279

280280
expect(() => {

0 commit comments

Comments
 (0)