File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -32,10 +32,6 @@ export class FunctionsClient {
32
32
/**
33
33
* Invokes a function
34
34
* @param functionName - the name of the function to invoke
35
- * @param invokeOptions - object with the following properties
36
- * `headers`: object representing the headers to send with the request
37
- * `body`: the body of the request
38
- * `responseType`: how the response should be parsed. The default is `json`
39
35
*/
40
36
async invoke < T = any > (
41
37
functionName : string ,
Original file line number Diff line number Diff line change @@ -8,7 +8,10 @@ export enum ResponseType {
8
8
}
9
9
10
10
export type FunctionInvokeOptions = {
11
+ /** object representing the headers to send with the request 1 */
11
12
headers ?: { [ key : string ] : string }
13
+ /** the body of the request */
12
14
body ?: Blob | BufferSource | FormData | URLSearchParams | ReadableStream < Uint8Array > | string
15
+ /** how the response should be parsed. The default is `json` */
13
16
responseType ?: keyof typeof ResponseType
14
17
}
You can’t perform that action at this time.
0 commit comments