Skip to content

Commit d0aad6a

Browse files
authored
fix: fix types (#375)
1 parent c68778b commit d0aad6a

File tree

5 files changed

+23
-18
lines changed

5 files changed

+23
-18
lines changed

src/configure.d.ts

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,41 @@
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+
}
59
interface ProxyParams {
6-
app: RequestListener,
7-
binaryMimeTypes?: string[],
8-
binarySettings?: BinarySettings
10+
app: RequestListener;
11+
binaryMimeTypes?: string[];
12+
binarySettings?: BinarySettings;
913
}
1014

1115
interface BinarySettings {
12-
isBinary?: Function | boolean,
13-
contentTypes?: string[]
16+
isBinary?: Function | boolean;
17+
contentTypes?: string[];
1418
}
1519
interface 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

2126
interface BinarySettings {
22-
isBinary?: Function | boolean,
23-
contentTypes?: string[]
27+
isBinary?: Function | boolean;
28+
contentTypes?: string[];
2429
}
2530

2631
interface 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;

src/event-sources/aws/api-gateway-cognito.ts

Whitespace-only changes.

src/event-sources/aws/appsync-resolver.ts

Whitespace-only changes.

src/event-sources/aws/cognito-trigger.ts

Whitespace-only changes.

src/event-sources/aws/stepfunction-lambda.ts

Whitespace-only changes.

0 commit comments

Comments
 (0)