Files
DefinitelyTyped/types/aws-serverless-express/index.d.ts
Matthias Meyer 6d6bd7ff0d @types/aws-serverless-express Added Parameter to createServer Function (#18822)
* @types/aws-serverless-express added binaryMimeTypes-parameter to createServer funtion

* add  Definitions by

* fixed tslint whitespace
2017-08-14 11:37:14 -07:00

21 lines
751 B
TypeScript

// Type definitions for aws-serverless-express 2.1
// Project: https://github.com/awslabs/aws-serverless-express
// Definitions by: Ben Speakman <https://github.com/threesquared>, Josh Caffey <https://github.com/jcaffey>, Matthias Meyer <https://github.com/mattmeye>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node"/>
import * as http from 'http';
import * as lambda from 'aws-lambda';
export function createServer(
requestListener: (request: http.IncomingMessage, response: http.ServerResponse) => http.Server,
serverListenCallback?: () => any,
binaryMimeTypes?: string[]
): http.Server;
export function proxy(
server: http.Server,
event: any,
context: lambda.Context
): void;