Skip to content

Commit 921319d

Browse files
authored
fix(types): update configure.d.ts (#394)
1 parent 36cb796 commit 921319d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/configure.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ interface BinarySettings {
2828
contentTypes?: string[];
2929
}
3030

31-
interface ConfigureResult {
32-
handler: Handler;
31+
interface ConfigureResult<TEvent = any, TResult = any> {
32+
handler: Handler<TEvent, TResult>;
3333
log: Logger;
3434
proxy: (proxyParams: ProxyParams) => Promise<Object>;
3535
}
3636

37-
declare function configure(configureParams: ConfigureParams): Handler & ConfigureResult;
37+
declare function configure<TEvent = any, TResult = any>(configureParams: ConfigureParams): Handler<TEvent, TResult> & ConfigureResult<TEvent, TResult>;
3838

3939
// declare function proxy(proxyParams: ProxyParams): Promise<any>
4040

0 commit comments

Comments
 (0)