Skip to content

Commit

Permalink
fix(web): add types for ctx.request (#963)
Browse files Browse the repository at this point in the history
  • Loading branch information
maslow committed Mar 25, 2023
1 parent b38c288 commit a18c27f
Show file tree
Hide file tree
Showing 2 changed files with 493 additions and 1 deletion.
8 changes: 7 additions & 1 deletion web/src/components/Editor/typesResolve/globals.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { requestType } from "./requestType";
import { responseType } from "./responseType";

export const globalDeclare = `
${requestType}
${responseType}
declare class FunctionConsole {
Expand Down Expand Up @@ -75,6 +76,11 @@ interface FunctionContext {
*/
method?: string;
/**
* Express request object
*/
request?: HttpRequest;
/**
* Express response object
*/
Expand Down
Loading

0 comments on commit a18c27f

Please sign in to comment.