mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-16 22:40:01 +08:00
* @types/aws-serverless-express added binaryMimeTypes-parameter to createServer funtion * add Definitions by * fixed tslint whitespace
21 lines
751 B
TypeScript
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;
|