1- import { RequestListener } from "http"
2- import { Handler } from "aws-lambda"
3- import Logger from "./logger"
1+ import { RequestListener } from "http" ;
2+ import { Handler } from "aws-lambda" ;
3+ import Logger from "./logger" ;
44
5+ interface EventSource {
6+ getRequest ?: any ; // TODO:
7+ getResponse ?: any ; // TODO:
8+ }
59interface ProxyParams {
6- app : RequestListener ,
7- binaryMimeTypes ?: string [ ] ,
8- binarySettings ?: BinarySettings
10+ app : RequestListener ;
11+ binaryMimeTypes ?: string [ ] ;
12+ binarySettings ?: BinarySettings ;
913}
1014
1115interface BinarySettings {
12- isBinary ?: Function | boolean ,
13- contentTypes ?: string [ ]
16+ isBinary ?: Function | boolean ;
17+ contentTypes ?: string [ ] ;
1418}
1519interface ConfigureParams {
16- app : RequestListener ,
17- binaryMimeTypes ?: string [ ] ,
18- binarySettings ?: BinarySettings
20+ app : RequestListener ;
21+ binaryMimeTypes ?: string [ ] ;
22+ binarySettings ?: BinarySettings ;
23+ eventSource ?: EventSource ; // TODO:
1924}
2025
2126interface BinarySettings {
22- isBinary ?: Function | boolean ,
23- contentTypes ?: string [ ]
27+ isBinary ?: Function | boolean ;
28+ contentTypes ?: string [ ] ;
2429}
2530
2631interface ConfigureResult {
27- handler : Handler ,
28- log : Logger ,
29- proxy : ( proxyParams : ProxyParams ) => Promise < Object >
32+ handler : Handler ;
33+ log : Logger ;
34+ proxy : ( proxyParams : ProxyParams ) => Promise < Object > ;
3035}
3136
32- declare function configure ( configureParams : ConfigureParams ) : ConfigureResult
37+ declare function configure ( configureParams : ConfigureParams ) : ConfigureResult ;
3338
3439// declare function proxy(proxyParams: ProxyParams): Promise<any>
3540
36- export default configure
41+ export default configure ;
0 commit comments