UNPKG

presta

Version:

Hyper minimal framework for the modern web.

11 lines (10 loc) 346 B
/** * THIS IS PROD CODE, BE CAREFUL WHAT YOU ADD TO THIS FILE * * TODO this should be a separate file to avoid needing to tree shake */ import { Event, Context, Response, Handler } from './lambda'; export declare function wrapHandler(file: { route: string; handler: Handler; }): (event: Event, context: Context) => Promise<Response>;