File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/firestore/exp/src/api Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ export class DocumentSnapshot<T = firestore.DocumentData>
59
59
return super . exists ( ) ;
60
60
}
61
61
62
- data ( options : firestore . SnapshotOptions = { } ) : T | undefined {
62
+ data ( options ? : firestore . SnapshotOptions ) : T | undefined {
63
63
if ( ! this . _document ) {
64
64
return undefined ;
65
65
} else if ( this . _converter ) {
@@ -77,7 +77,7 @@ export class DocumentSnapshot<T = firestore.DocumentData>
77
77
const userDataWriter = new UserDataWriter (
78
78
this . _firestoreImpl . _databaseId ,
79
79
/* timestampsInSnapshots= */ true ,
80
- options . serverTimestamps || DEFAULT_SERVER_TIMESTAMP_BEHAVIOR ,
80
+ options ? .serverTimestamps || DEFAULT_SERVER_TIMESTAMP_BEHAVIOR ,
81
81
key =>
82
82
new DocumentReference (
83
83
this . _firestore ,
You can’t perform that action at this time.
0 commit comments