Skip to content

Commit

Permalink
fix(types): update configure.d.ts (#394)
Browse files Browse the repository at this point in the history
  • Loading branch information
rdsedmundo authored May 11, 2021
1 parent 36cb796 commit 921319d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/configure.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ interface BinarySettings {
contentTypes?: string[];
}

interface ConfigureResult {
handler: Handler;
interface ConfigureResult<TEvent = any, TResult = any> {
handler: Handler<TEvent, TResult>;
log: Logger;
proxy: (proxyParams: ProxyParams) => Promise<Object>;
}

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

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

Expand Down

0 comments on commit 921319d

Please sign in to comment.