Skip to content

Commit

Permalink
fix: body property needed on Request Definition file
Browse files Browse the repository at this point in the history
  • Loading branch information
muratcorlu committed Feb 9, 2020
1 parent 647f010 commit f7afb75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/request.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ import { Accepts } from 'accepts';
import { Readable } from 'stream';
import { IncomingMessage } from 'http';

export interface Request extends IncomingMessage {
export class Request extends IncomingMessage {
constructor(event: APIGatewayProxyEvent);
body: any;
headers: { [name: string]: string };
hostname: string | null;
method: string;
Expand Down
2 changes: 1 addition & 1 deletion src/response.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Request } from "./request";
import { APIGatewayProxyCallback, APIGatewayProxyResult } from 'aws-lambda';
import { ServerResponse } from "http";

export interface Response extends ServerResponse {
export class Response extends ServerResponse {
/**
* Response object constructor
*
Expand Down

0 comments on commit f7afb75

Please sign in to comment.