UNPKG

convert-lambda-to-express

Version:

Wrapper to run lambda on express. Works great for running lambdas as an express server during development but is production ready. Developed to work in conjunction with matthewkeil/full-stack-pattern cdk construct.

8 lines (7 loc) 388 B
export declare function generateRandomHex(length: number): string; export declare class TimeoutError extends Error { constructor(m: string); } export declare const httpMethods: readonly ["GET", "PUT", "POST", "PATCH", "DELETE", "HEAD", "OPTIONS"]; export declare type HttpMethod = typeof httpMethods[number]; export declare function isHttpMethod(value: unknown): value is HttpMethod;