UNPKG

@userlab/dx

Version:

Build efficient GraphQL backend

7 lines (6 loc) 470 B
import { APIGatewayProxyEvent, APIGatewayProxyResult, Context } from 'aws-lambda'; import { Handler, HandlerOptions } from '../types'; export declare const handleResult: (code: number, body: { [key: string]: any; }) => APIGatewayProxyResult; export declare const slsHandler: (handler: Handler, { body: bodySchema, headers: headersSchema, params: paramsSchema, }?: HandlerOptions) => (event: APIGatewayProxyEvent, context: Context) => Promise<APIGatewayProxyResult>;