Skip to content

Commit ffbf8f9

Browse files
committed
Removed boundaries types to avoid problems related with a typescript iss
1 parent 4616e07 commit ffbf8f9

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/lib/GCloudEventHandler.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import { IApp, IRawCallback, IRawEvent } from "lambda-framework";
22
import GCloudTransformer from "./GCloudTransformer";
3-
import IGCloudFunctionsCallback from "./types/IGCloudFunctionsCallback";
4-
import IGCloudFunctionsEvent from "./types/IGCloudFunctionsEvent";
53

64
/**
75
* The class that implements the Cloud Functions handler for events.
@@ -16,7 +14,7 @@ export default class GCloudEventHandler {
1614
this._transformer = new GCloudTransformer();
1715
}
1816

19-
public handle(event: IGCloudFunctionsEvent, callback: IGCloudFunctionsCallback): void {
17+
public handle(event: any, callback: any): void {
2018
const rawEvent: IRawEvent = this._transformer.transformRawEvent(event);
2119
const rawCallback: IRawCallback = this._transformer.transformRawCallback(callback);
2220

src/lib/GCloudHttpHandler.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { Request, Response } from "express";
21
import { IApp, IRawCallback, IRawEvent } from "lambda-framework";
32
import GCloudTransformer from "./GCloudTransformer";
43

@@ -15,7 +14,7 @@ export default class GCloudHttpHandler {
1514
this._transformer = new GCloudTransformer();
1615
}
1716

18-
public handle(request: Request, response: Response): void {
17+
public handle(request: any, response: any): void {
1918
const rawEvent: IRawEvent = this._transformer.transformHttpRawEvent(request);
2019
const rawCallback: IRawCallback = this._transformer.transformHttpRawCallback(response);
2120

0 commit comments

Comments
 (0)