This repository was archived by the owner on Oct 9, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export class FunctionsClient {
3030
3131 /**
3232 * Updates the authorization header
33- * @params token - the new jwt token sent in the authorisation header
33+ * @param token - the new jwt token sent in the authorisation header
3434 */
3535 setAuth ( token : string ) {
3636 this . headers . Authorization = `Bearer ${ token } `
@@ -39,8 +39,6 @@ export class FunctionsClient {
3939 /**
4040 * Invokes a function
4141 * @param functionName - the name of the function to invoke
42- * @param invokeOption.headers - object representing the headers to send with the request
43- * @param invokeOptions.body - the body of the request
4442 */
4543 async invoke < T = any > (
4644 functionName : string ,
Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ export type Fetch = typeof fetch
44 * Response format
55 *
66 */
7- interface FunctionsResponseSuccess < T > {
7+ export interface FunctionsResponseSuccess < T > {
88 data : T
99 error : null
1010}
11- interface FunctionsResponseFailure {
11+ export interface FunctionsResponseFailure {
1212 data : null
1313 error : any
1414}
@@ -42,7 +42,13 @@ export class FunctionsHttpError extends FunctionsError {
4242}
4343
4444export type FunctionInvokeOptions = {
45+ /**
46+ * object representing the headers to send with the request
47+ * */
4548 headers ?: { [ key : string ] : string }
49+ /**
50+ * the body of the request
51+ */
4652 body ?:
4753 | File
4854 | Blob
You can’t perform that action at this time.
0 commit comments