UNPKG

infrastructure-components

Version:

Infrastructure-Components configure the infrastructure of your React-App as part of your React-Components.

23 lines (19 loc) 589 B
import { Context, Callback } from "aws-lambda"; declare namespace ServerlessHttp { type FrameworkApplication = { handle: Function; router: { route: Function; } _core: { _dispatch: Function; } } type HandlerCompatibleApp = Function | Partial<FrameworkApplication>; type LambdaPartial = (event: any, context: Context, callback?: Callback) => void; } declare function serverlessHttp( app: ServerlessHttp.HandlerCompatibleApp, opts?: any ): ServerlessHttp.LambdaPartial; export default serverlessHttp;