fix(web): cloud function ctx types error (#869)

This commit is contained in:
maslow 2023-03-07 20:23:48 +08:00 committed by GitHub
parent c3b39d9dbb
commit 757c38e878
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -18,12 +18,12 @@ export interface FunctionContext {
*/
auth?: any
user?: any
requestId: string
requestId?: string
method?: string
socket?: WebSocket
request?: Request
response?: Response
__function_name: string
__function_name?: string
}
/**

View File

@ -47,7 +47,7 @@ export interface FunctionContext {
socket?: WebSocket
request?: Request
response?: Response
__function_name: string
__function_name?: string
}
/**

View File

@ -78,7 +78,7 @@ interface FunctionContext {
/**
* Express response object
*/
response: HttpResponse
response?: HttpResponse
/**
* WebSocket object