mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 12:56:46 +08:00
* Switch express-serve-static-core to a module * Add tsconfig to aws-serverless-express * Switch aws-serverless-express to module * Fix dangling pointer * Fix wrong file name * Add tsconfig.json * switch seamless-immutable a module * Add tsconfig.json * use --strictNullChecks
19 lines
626 B
TypeScript
19 lines
626 B
TypeScript
// Type definitions for aws-serverless-express
|
|
// Project: https://github.com/awslabs/aws-serverless-express
|
|
// Definitions by: Ben Speakman <https://github.com/threesquared>
|
|
// 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
|
|
): http.Server;
|
|
|
|
export function proxy(
|
|
server: http.Server,
|
|
event: any,
|
|
context: lambda.Context
|
|
): void; |