Skip to content

Commit

Permalink
failing: attempt using default <U> in DocumentReference converter
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Chen committed Mar 3, 2021
1 parent e7391cd commit 47f882d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/firestore/src/api/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -836,11 +836,11 @@ export class DocumentReference<T = PublicDocumentData>
): PublicDocumentReference<U>;
withConverter<U>(
converter: PublicFirestoreDataConverter<U> | null
): PublicDocumentReference<U> | PublicDocumentReference<PublicDocumentData> {
return new DocumentReference(
): PublicDocumentReference<U> {
return new DocumentReference<U>(
this.firestore,
converter
? this._delegate.withConverter(
? this._delegate.withConverter<U>(
FirestoreDataConverter.getInstance(this.firestore, converter)
)
: this._delegate.withConverter(null)
Expand Down

0 comments on commit 47f882d

Please sign in to comment.