@@ -20,12 +20,14 @@ public extension Functions {
20
20
/// Creates a reference to the Callable HTTPS trigger with the given name, the type of an `Encodable`
21
21
/// request and the type of a `Decodable` response.
22
22
/// - Parameter name: The name of the Callable HTTPS trigger
23
- /// - Parameter requestType: The type of the `Encodable` entity to use for requests to this `Callable`
24
- /// - Parameter responseType: The type of the `Decodable` entity to use for responses from this `Callable`
23
+ /// - Parameter requestAs: The type of the `Encodable` entity to use for requests to this `Callable`
24
+ /// - Parameter responseAs: The type of the `Decodable` entity to use for responses from this `Callable`
25
+ /// - Parameter encoder: The encoder instance to use to run the encoding.
26
+ /// - Parameter decoder: The decoder instance to use to run the decoding.
25
27
func httpsCallable< Request: Encodable ,
26
28
Response: Decodable > ( _ name: String ,
27
- requestAs requestType : Request . Type = Request . self,
28
- responseAs responseType : Response . Type = Response . self,
29
+ requestAs: Request . Type = Request . self,
30
+ responseAs: Response . Type = Response . self,
29
31
encoder: FirebaseDataEncoder = FirebaseDataEncoder ( ) ,
30
32
decoder: FirebaseDataDecoder = FirebaseDataDecoder ( ) )
31
33
-> Callable < Request , Response > {
@@ -139,9 +141,10 @@ public struct Callable<Request: Encodable, Response: Decodable> {
139
141
/// resumes with a new FCM Token the next time you call this method.
140
142
///
141
143
/// - Parameter data: The `Request` representing the data to pass to the trigger.
144
+ /// - Parameter encoder: The encoder instance to use to run the encoding.
145
+ /// - Parameter decoder: The decoder instance to use to run the decoding.
142
146
///
143
- /// - Throws: An error if any value throws an error during encoding.
144
- /// - Throws: An error if any value throws an error during decoding.
147
+ /// - Throws: An error if any value throws an error during encoding or decoding.
145
148
/// - Throws: An error if the callable fails to complete
146
149
///
147
150
/// - Returns: The decoded `Response` value
0 commit comments