Skip to content

Commit

Permalink
docs: unhide withConverter docs (#1568)
Browse files Browse the repository at this point in the history
  • Loading branch information
schmidt-sebastian authored Jul 21, 2021
1 parent 5e38415 commit 6331da4
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions dev/src/reference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,10 @@ export class DocumentReference<T = firestore.DocumentData>
return {referenceValue: this.formattedName};
}

withConverter(converter: null): DocumentReference<firestore.DocumentData>;
withConverter<U>(
converter: firestore.FirestoreDataConverter<U>
): DocumentReference<U>;
/**
* Applies a custom data converter to this DocumentReference, allowing you to
* use your own custom model objects with Firestore. When you call set(),
Expand Down Expand Up @@ -603,10 +607,6 @@ export class DocumentReference<T = firestore.DocumentData>
* from Firestore. Passing in `null` removes the current converter.
* @return A DocumentReference<U> that uses the provided converter.
*/
withConverter(converter: null): DocumentReference<firestore.DocumentData>;
withConverter<U>(
converter: firestore.FirestoreDataConverter<U>
): DocumentReference<U>;
withConverter<U>(
converter: firestore.FirestoreDataConverter<U> | null
): DocumentReference<U> {
Expand Down Expand Up @@ -2311,6 +2311,8 @@ export class Query<T = firestore.DocumentData> implements firestore.Query<T> {
};
}

withConverter(converter: null): Query<firestore.DocumentData>;
withConverter<U>(converter: firestore.FirestoreDataConverter<U>): Query<U>;
/**
* Applies a custom data converter to this Query, allowing you to use your
* own custom model objects with Firestore. When you call get() on the
Expand Down Expand Up @@ -2359,8 +2361,6 @@ export class Query<T = firestore.DocumentData> implements firestore.Query<T> {
* from Firestore. Passing in `null` removes the current converter.
* @return A Query<U> that uses the provided converter.
*/
withConverter(converter: null): Query<firestore.DocumentData>;
withConverter<U>(converter: firestore.FirestoreDataConverter<U>): Query<U>;
withConverter<U>(
converter: firestore.FirestoreDataConverter<U> | null
): Query<U> {
Expand Down Expand Up @@ -2609,6 +2609,10 @@ export class CollectionReference<T = firestore.DocumentData>
);
}

withConverter(converter: null): CollectionReference<firestore.DocumentData>;
withConverter<U>(
converter: firestore.FirestoreDataConverter<U>
): CollectionReference<U>;
/**
* Applies a custom data converter to this CollectionReference, allowing you
* to use your own custom model objects with Firestore. When you call add() on
Expand Down Expand Up @@ -2657,10 +2661,6 @@ export class CollectionReference<T = firestore.DocumentData>
* from Firestore. Passing in `null` removes the current converter.
* @return A CollectionReference<U> that uses the provided converter.
*/
withConverter(converter: null): CollectionReference<firestore.DocumentData>;
withConverter<U>(
converter: firestore.FirestoreDataConverter<U>
): CollectionReference<U>;
withConverter<U>(
converter: firestore.FirestoreDataConverter<U> | null
): CollectionReference<U> {
Expand Down

0 comments on commit 6331da4

Please sign in to comment.