File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 1
1
import { IApp , IRawCallback , IRawEvent } from "lambda-framework" ;
2
2
import GCloudTransformer from "./GCloudTransformer" ;
3
- import IGCloudFunctionsCallback from "./types/IGCloudFunctionsCallback" ;
4
- import IGCloudFunctionsEvent from "./types/IGCloudFunctionsEvent" ;
5
3
6
4
/**
7
5
* The class that implements the Cloud Functions handler for events.
@@ -16,7 +14,7 @@ export default class GCloudEventHandler {
16
14
this . _transformer = new GCloudTransformer ( ) ;
17
15
}
18
16
19
- public handle ( event : IGCloudFunctionsEvent , callback : IGCloudFunctionsCallback ) : void {
17
+ public handle ( event : any , callback : any ) : void {
20
18
const rawEvent : IRawEvent = this . _transformer . transformRawEvent ( event ) ;
21
19
const rawCallback : IRawCallback = this . _transformer . transformRawCallback ( callback ) ;
22
20
Original file line number Diff line number Diff line change 1
- import { Request , Response } from "express" ;
2
1
import { IApp , IRawCallback , IRawEvent } from "lambda-framework" ;
3
2
import GCloudTransformer from "./GCloudTransformer" ;
4
3
@@ -15,7 +14,7 @@ export default class GCloudHttpHandler {
15
14
this . _transformer = new GCloudTransformer ( ) ;
16
15
}
17
16
18
- public handle ( request : Request , response : Response ) : void {
17
+ public handle ( request : any , response : any ) : void {
19
18
const rawEvent : IRawEvent = this . _transformer . transformHttpRawEvent ( request ) ;
20
19
const rawCallback : IRawCallback = this . _transformer . transformHttpRawCallback ( response ) ;
21
20
You can’t perform that action at this time.
0 commit comments