Skip to content

Commit

Permalink
fix(types): enhance accuracy of type definitions (#379)
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnsparks-work authored Mar 3, 2021
1 parent 58c2416 commit 15e11d2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/configure.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ interface ConfigureResult {
proxy: (proxyParams: ProxyParams) => Promise<Object>;
}

declare function configure(configureParams: ConfigureParams): ConfigureResult;
declare function configure(configureParams: ConfigureParams): Handler & ConfigureResult;

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

Expand Down
6 changes: 6 additions & 0 deletions src/current-invoke.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export interface CurrentInvoke {
event?: any;
context?: any;
}

export declare function getCurrentInvoke(): CurrentInvoke;
6 changes: 4 additions & 2 deletions src/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import Configure from "./configure"
import configure from "./configure"

export = Configure
export default configure;
export { default as configure } from "./configure"
export { getCurrentInvoke } from "./current-invoke"

0 comments on commit 15e11d2

Please sign in to comment.