Skip to content

Require explicit typing for DocumentSnapshot decoding. DocumentReference decoding. #9101

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prev Previous commit
Updated comment after review
  • Loading branch information
mortenbekditlevsen committed Feb 22, 2022
commit 9ce7b610afa8739ead8bc8a9ef43bea01f841467
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ public extension DocumentReference {
///
/// This method attempts to provide up-to-date data when possible by waiting
/// for data from the server, but it may return cached data or fail if you are
/// offline and the server cannot be reached.
/// offline and the server cannot be reached. If `T` denotes an optional
/// type, the method returns a successful status with a value of `nil` for
/// non-existing documents.
///
/// - Parameters:
/// - as: A `Decodable` type to convert the document fields to.
Expand Down Expand Up @@ -85,7 +87,9 @@ public extension DocumentReference {
///
/// This method attempts to provide up-to-date data when possible by waiting
/// for data from the server, but it may return cached data or fail if you
/// are offline and the server cannot be reached.
/// are offline and the server cannot be reached. If `T` denotes
/// an optional type, the method returns a successful status with a value
/// of `nil` for non-existing documents.
///
/// - Parameters:
/// - as: A `Decodable` type to convert the document fields to.
Expand Down