Skip to content

Commit 0f9f5b1

Browse files
committed
fix: default invoke T
responseType is `json` by default so `any` is more appropriate
1 parent ad78a6b commit 0f9f5b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export class FunctionsClient {
3737
* `body`: the body of the request
3838
* `responseType`: how the response should be parsed. The default is `json`
3939
*/
40-
async invoke<T = string>(
40+
async invoke<T = any>(
4141
functionName: string,
4242
invokeOptions?: FunctionInvokeOptions
4343
): Promise<{ data: T | null; error: Error | null }> {

0 commit comments

Comments
 (0)