We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2c4a85 commit 12175ffCopy full SHA for 12175ff
index.d.ts
@@ -0,0 +1,17 @@
1
+declare module "lambda-multipart-parser" {
2
+ import {
3
+ APIGatewayProxyEvent,
4
+ } from "aws-lambda"
5
+
6
+ interface MultipartFile {
7
+ filename: string
8
+ content: Buffer
9
+ contentType: string
10
+ encoding: string
11
+ fieldname: string
12
+ }
13
14
+ type MultipartRequest = { files: MultipartFile[] } & Record<string, string>
15
16
+ export function parse (event: APIGatewayProxyEvent): Promise<MultipartRequest>
17
+}
0 commit comments