UNPKG

lambda-multipart-parser-v2

Version:

This module will parse the multipart-form containing files and fields from the lambda event object. Updated to use Busboy 1.6.0

18 lines (14 loc) 445 B
declare module "lambda-multipart-parser-v2" { import { APIGatewayProxyEvent, } from "aws-lambda" interface MultipartFile { filename: string content: Buffer contentType: string encoding: string fieldname: string } type MultipartRequest = { files: MultipartFile[] } & Record<string, string> export function parse (event: APIGatewayProxyEvent): Promise<MultipartRequest> }