Skip to content

Commit f7afb75

Browse files
committed
fix: body property needed on Request Definition file
1 parent 647f010 commit f7afb75

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/request.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ import { Accepts } from 'accepts';
44
import { Readable } from 'stream';
55
import { IncomingMessage } from 'http';
66

7-
export interface Request extends IncomingMessage {
7+
export class Request extends IncomingMessage {
88
constructor(event: APIGatewayProxyEvent);
9+
body: any;
910
headers: { [name: string]: string };
1011
hostname: string | null;
1112
method: string;

src/response.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Request } from "./request";
22
import { APIGatewayProxyCallback, APIGatewayProxyResult } from 'aws-lambda';
33
import { ServerResponse } from "http";
44

5-
export interface Response extends ServerResponse {
5+
export class Response extends ServerResponse {
66
/**
77
* Response object constructor
88
*

0 commit comments

Comments
 (0)