@@ -43,7 +43,7 @@ import {RESERVED_MAP_KEY, RESERVED_MAP_KEY_VECTOR_VALUE} from './map-type';
4343 * @param timestampValue The value to convert.
4444 * @param argumentName The argument name to use in the error message if the
4545 * conversion fails. If omitted, 'timestampValue' is used.
46- * @return The value as expected by Protobuf JS or undefined if no input was
46+ * @returns The value as expected by Protobuf JS or undefined if no input was
4747 * provided.
4848 */
4949export function timestampFromJson (
@@ -94,7 +94,7 @@ export function timestampFromJson(
9494 * @private
9595 * @internal
9696 * @param bytesValue The value to convert.
97- * @return The value as expected by Protobuf JS.
97+ * @returns The value as expected by Protobuf JS.
9898 */
9999function bytesFromJson ( bytesValue : string | Uint8Array ) : Uint8Array {
100100 if ( typeof bytesValue === 'string' ) {
@@ -110,7 +110,7 @@ function bytesFromJson(bytesValue: string | Uint8Array): Uint8Array {
110110 * @private
111111 * @internal
112112 * @param proto The `firestore.v1.Value` proto.
113- * @return The string value for 'valueType'.
113+ * @returns The string value for 'valueType'.
114114 */
115115export function detectValueType ( proto : ProtobufJsValue ) : string {
116116 let valueType : string | undefined ;
@@ -187,7 +187,7 @@ export function detectValueType(proto: ProtobufJsValue): string {
187187 * @private
188188 * @internal
189189 * @param proto The `firestore.v1.Value` proto.
190- * @return The string value for 'valueType'.
190+ * @returns The string value for 'valueType'.
191191 */
192192export function detectGoogleProtobufValueType (
193193 proto : google . protobuf . IValue ,
@@ -229,7 +229,7 @@ export function detectGoogleProtobufValueType(
229229 * @private
230230 * @internal
231231 * @param fieldValue The `firestore.v1.Value` in Proto3 JSON format.
232- * @return The `firestore.v1.Value` in Protobuf JS format.
232+ * @returns The `firestore.v1.Value` in Protobuf JS format.
233233 */
234234export function valueFromJson ( fieldValue : api . IValue ) : api . IValue {
235235 const valueType = detectValueType ( fieldValue ) ;
@@ -288,7 +288,7 @@ export function valueFromJson(fieldValue: api.IValue): api.IValue {
288288 * @private
289289 * @internal
290290 * @param document An object with IValues in Proto3 JSON format.
291- * @return The object in Protobuf JS format.
291+ * @returns The object in Protobuf JS format.
292292 */
293293export function fieldsFromJson ( document : ApiMapValue ) : ApiMapValue {
294294 const result : ApiMapValue = { } ;
0 commit comments